diff src/alloc.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 427a72c6ee17
children d5eb0914ca1f
line wrap: on
line diff
--- a/src/alloc.c	Thu Dec 10 17:55:59 2015 +0000
+++ b/src/alloc.c	Sat Dec 12 19:08:46 2015 +0000
@@ -889,8 +889,8 @@
    about expressions in src/.gdbinit.  See src/.gdbinit or src/.dbxrc
    to see how this is used.  */
 
-EMACS_UINT dbg_valmask = ((1UL << VALBITS) - 1) << GCBITS;
-EMACS_UINT dbg_typemask = (1UL << GCTYPEBITS) - 1;
+EMACS_UINT dbg_valmask = (((EMACS_UINT)1 << VALBITS) - 1) << GCBITS;
+EMACS_UINT dbg_typemask = ((EMACS_UINT)1 << GCTYPEBITS) - 1;
 
 #ifdef USE_UNION_TYPE
 unsigned char dbg_USE_UNION_TYPE = 1;