aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2011-04-28 01:18:53 -0700
committerPaul Eggert2011-04-28 01:18:53 -0700
commitede49d7153ed628078bcbc2473f898904b5250ea (patch)
treeee55ad2109712fbc72489489490439ef6c31c039 /src/ChangeLog
parent2f30ecd05f7e5b9f78f256f75677530c501e5a6d (diff)
downloademacs-ede49d7153ed628078bcbc2473f898904b5250ea.tar.gz
emacs-ede49d7153ed628078bcbc2473f898904b5250ea.zip
* sysdep.c (get_random): Don't assume EMACS_INT is no wider than long.
Also, don't assume VALBITS / RAND_BITS is less than 5, and don't rely on undefined behavior when shifting a 1 left into the sign bit. * lisp.h (get_random): Change signature to match.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2bda5ffa46f..40fb601e061 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12011-04-28 Paul Eggert <eggert@cs.ucla.edu> 12011-04-28 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * sysdep.c (get_random): Don't assume EMACS_INT is no wider than long.
4 Also, don't assume VALBITS / RAND_BITS is less than 5,
5 and don't rely on undefined behavior when shifting a 1 left into
6 the sign bit.
7 * lisp.h (get_random): Change signature to match.
8
3 * lread.c (hash_string): Use size_t, not int, for hash computation. 9 * lread.c (hash_string): Use size_t, not int, for hash computation.
4 Normally we prefer signed values; but hashing is special, because 10 Normally we prefer signed values; but hashing is special, because
5 it's better to use unsigned division on hash table sizes so that 11 it's better to use unsigned division on hash table sizes so that