summaryrefslogtreecommitdiff
path: root/libiberty/random.c
diff options
context:
space:
mode:
authorgkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-24 20:29:48 +0000
committergkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-24 20:29:48 +0000
commitf0bff53d7a30991a1cadc94a9f812d537cb92205 (patch)
tree80a475d8f1bd4fc8d9e0e9be985647880e8d1f14 /libiberty/random.c
parent4e6879f50eedabc0a46ed95e2cec71fe8ae1f7cb (diff)
downloadgcc-f0bff53d7a30991a1cadc94a9f812d537cb92205.tar.gz
* libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
demangle_expression, demangle_function_name): Use ARRAY_SIZE. * libiberty/random.c (end_ptr): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35948 138bc75d-0d04-0410-961f-82ee72b054a4
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.