diff src/fns.c @ 5934:e2fae7783046 cygwin

lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author Henry Thompson <ht@markup.co.uk>
date Sat, 12 Dec 2015 19:08:46 +0000
parents 1a507c4c6c42
children d5eb0914ca1f
line wrap: on
line diff
--- a/src/fns.c	Thu Dec 10 17:55:59 2015 +0000
+++ b/src/fns.c	Sat Dec 12 19:08:46 2015 +0000
@@ -98,7 +98,7 @@
 	 it's possible to get a quotient larger than limit; discarding
 	 these values eliminates the bias that would otherwise appear
 	 when using a large limit.  */
-      denominator = ((unsigned long)1 << FIXNUM_VALBITS) / XFIXNUM (limit);
+      denominator = ((EMACS_UINT)1 << FIXNUM_VALBITS) / XFIXNUM (limit);
       do
 	val = get_random () / denominator;
       while (val >= XFIXNUM (limit));