diff options
| author | Paul Eggert | 2011-04-28 01:18:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-28 01:18:53 -0700 |
| commit | ede49d7153ed628078bcbc2473f898904b5250ea (patch) | |
| tree | ee55ad2109712fbc72489489490439ef6c31c039 /src/ChangeLog | |
| parent | 2f30ecd05f7e5b9f78f256f75677530c501e5a6d (diff) | |
| download | emacs-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/ChangeLog | 6 |
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 @@ | |||
| 1 | 2011-04-28 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-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 |