summaryrefslogtreecommitdiff
path: root/libiberty/random.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-08-24 20:29:48 +0000
committerGreg McGary <gkm@gcc.gnu.org>2000-08-24 20:29:48 +0000
commit2f26c11dbb2d0f1e37f16120c455147a00dff716 (patch)
tree80a475d8f1bd4fc8d9e0e9be985647880e8d1f14 /libiberty/random.c
parent672a59e0ad16e61161e096614f0da1a4ad65f6e6 (diff)
cplus-dem.c (cplus_demangle_opname, [...]): Use ARRAY_SIZE.
* libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, demangle_expression, demangle_function_name): Use ARRAY_SIZE. * libiberty/random.c (end_ptr): Likewise. From-SVN: r35948
Diffstat (limited to 'libiberty/random.c')
-rw-r--r--libiberty/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/random.c b/libiberty/random.c
index ef00da0a5ae..4e9b7ffafcc 100644
--- a/libiberty/random.c
+++ b/libiberty/random.c
@@ -198,7 +198,7 @@ static int rand_type = TYPE_3;
static int rand_deg = DEG_3;
static int rand_sep = SEP_3;
-static long int *end_ptr = &randtbl[sizeof(randtbl) / sizeof(randtbl[0])];
+static long int *end_ptr = &randtbl[ARRAY_SIZE (randtbl)];
/* Initialize the random number generator based on the given seed. If the
type is the trivial no-state-information type, just remember the seed.