Mercurial > hg > xemacs-beta
diff src/alloc.c @ 2260:f913c1545598
[xemacs-hg @ 2004-09-10 18:46:58 by james]
Change log to log2 to avoid gcc3 shadow warnings.
author | james |
---|---|
date | Fri, 10 Sep 2004 18:47:02 +0000 |
parents | 9c872f33ecbe |
children | 04bc9d2f42c7 |
line wrap: on
line diff
--- a/src/alloc.c Fri Sep 10 11:58:33 2004 +0000 +++ b/src/alloc.c Fri Sep 10 18:47:02 2004 +0000 @@ -5143,20 +5143,21 @@ # endif if (claimed_size < 4096) { - int log = 1; + /* fxg: rename log->log2 to supress gcc3 shadow warning */ + int log2 = 1; /* compute the log base two, more or less, then use it to compute the block size needed. */ claimed_size--; /* It's big, it's heavy, it's wood! */ while ((claimed_size /= 2) != 0) - ++log; + ++log2; claimed_size = 1; /* It's better than bad, it's good! */ - while (log > 0) + while (log2 > 0) { claimed_size *= 2; - log--; + log2--; } /* We have to come up with some average about the amount of blocks used. */ @@ -5184,20 +5185,21 @@ claimed_size += 8; # endif { - int log = 1; + /* fxg: rename log->log2 to supress gcc3 shadow warning */ + int log2 = 1; /* compute the log base two, more or less, then use it to compute the block size needed. */ claimed_size--; /* It's big, it's heavy, it's wood! */ while ((claimed_size /= 2) != 0) - ++log; + ++log2; claimed_size = 1; /* It's better than bad, it's good! */ - while (log > 0) + while (log2 > 0) { claimed_size *= 2; - log--; + log2--; } }