aboutsummaryrefslogtreecommitdiff
path: root/libiberty/random.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-08-24 22:44:37 +0000
committerGreg McGary <gkm@gcc.gnu.org>2000-08-24 22:44:37 +0000
commit2f59c8eb4bf922da188c1c5e6b85fc1381f43cb9 (patch)
tree657ad88fa6f5c2597c8be70bb09db245082068f7 /libiberty/random.c
parent054f5e6927d3da16ec3f2546fd56b4eb822300af (diff)
downloadgcc-2f59c8eb4bf922da188c1c5e6b85fc1381f43cb9.zip
gcc-2f59c8eb4bf922da188c1c5e6b85fc1381f43cb9.tar.gz
gcc-2f59c8eb4bf922da188c1c5e6b85fc1381f43cb9.tar.bz2
* libiberty/random.c (end_ptr): Revert previous change.
From-SVN: r35962
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 4e9b7ff..ef00da0 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[ARRAY_SIZE (randtbl)];
+static long int *end_ptr = &randtbl[sizeof(randtbl) / sizeof(randtbl[0])];
/* Initialize the random number generator based on the given seed. If the
type is the trivial no-state-information type, just remember the seed.