* sysdep.c (get_random): Don't assume EMACS_INT is no wider than long.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Apr 2011 08:18:53 +0000 (01:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Apr 2011 08:18:53 +0000 (01:18 -0700)
commitede49d7153ed628078bcbc2473f898904b5250ea
treeee55ad2109712fbc72489489490439ef6c31c039
parent2f30ecd05f7e5b9f78f256f75677530c501e5a6d
* 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.
src/ChangeLog
src/lisp.h
src/sysdep.c