diff src/tests.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 65d65b52d608
children
line wrap: on
line diff
--- a/src/tests.c	Thu Dec 10 17:55:59 2015 +0000
+++ b/src/tests.c	Sat Dec 12 19:08:46 2015 +0000
@@ -850,7 +850,7 @@
 #define FROB(val)							\
 do									\
 {									\
-  void *pval = (void *) (val);						\
+  void *pval = (void *) ((EMACS_UINT)val);				\
   assert (GET_VOID_FROM_LISP (STORE_VOID_IN_LISP (pval)) == pval);	\
 }									\
 while (0)
@@ -866,7 +866,7 @@
   FROB (0x00000080);
   FROB (0x00008080);
   FROB (0x00808080);
-  FROB (0x80808080);
+  FROB (0x80808080);/*this and next two fail w/o the above added (EMACS_UINT) -- HST */
   FROB (0xCAFEBABE);
   FROB (0xFFFFFFFE);
 #if FIXNUM_VALBITS >= 63