diff src/number.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 a2912073be85
children d5eb0914ca1f
line wrap: on
line diff
--- a/src/number.c	Thu Dec 10 17:55:59 2015 +0000
+++ b/src/number.c	Sat Dec 12 19:08:46 2015 +0000
@@ -351,7 +351,7 @@
   CHECK_BIGFLOAT (f);
   if (FIXNUMP (precision))
     {
-      prec = (XFIXNUM (precision) <= 0) ? 1UL : (unsigned long) XFIXNUM (precision);
+      prec = (XFIXNUM (precision) <= 0) ? (EMACS_UINT)1 : (unsigned long) XFIXNUM (precision);
     }
 #ifdef HAVE_BIGNUM
   else if (BIGNUMP (precision))
@@ -519,7 +519,7 @@
 #endif /* HAVE_BIGNUM */
 	case RATIO_T:
 #ifdef HAVE_RATIO
-	  return make_ratio (XREALFIXNUM (number), 1UL);
+	  return make_ratio (XREALFIXNUM (number), (EMACS_UINT)1);
 #else
 	  ABORT ();
 #endif /* HAVE_RATIO */