aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-08-24 22:44:37 +0000
committerGreg McGary <greg@mcgary.org>2000-08-24 22:44:37 +0000
commit387d62649813f3902998a54e54a3bb46b9bb5849 (patch)
tree657ad88fa6f5c2597c8be70bb09db245082068f7 /libiberty
parentd0d4645346b892901f4f58a91a8d1e0ba4e2d05d (diff)
* libiberty/random.c (end_ptr): Revert previous change.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@35962 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/random.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 8cbf68cf2b8..c921a3b9c62 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,5 +1,9 @@
2000-08-24 Greg McGary <greg@mcgary.org>
+ * libiberty/random.c (end_ptr): Revert previous change.
+
+2000-08-24 Greg McGary <greg@mcgary.org>
+
* libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
demangle_expression, demangle_function_name): Use ARRAY_SIZE.
* libiberty/random.c (end_ptr): Likewise.
diff --git a/libiberty/random.c b/libiberty/random.c
index 4e9b7ffafcc..ef00da0a5ae 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.