From 2f59c8eb4bf922da188c1c5e6b85fc1381f43cb9 Mon Sep 17 00:00:00 2001
From: Greg McGary <greg@mcgary.org>
Date: Thu, 24 Aug 2000 22:44:37 +0000
Subject: [PATCH] * libiberty/random.c (end_ptr): Revert previous change.

From-SVN: r35962
---
 libiberty/ChangeLog | 4 ++++
 libiberty/random.c  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 8cbf68cf2b8d..c921a3b9c629 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+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,
diff --git a/libiberty/random.c b/libiberty/random.c
index 4e9b7ffafcc4..ef00da0a5ae2 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.
-- 
GitLab