diff src/buffer.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 8139bdf8db04
children
line wrap: on
line diff
--- a/src/buffer.c	Thu Dec 10 17:55:59 2015 +0000
+++ b/src/buffer.c	Sat Dec 12 19:08:46 2015 +0000
@@ -739,8 +739,9 @@
   b->local_var_flags = 0;
   /* For each slot that has a default value,
      copy that into the slot.  */
+  /* HST added (int) -- dangerous?? */
 #define MARKED_SLOT(slot)						\
-  { int mask = XFIXNUM (buffer_local_flags.slot);				\
+  { int mask = (int)XFIXNUM (buffer_local_flags.slot);			\
     if ((mask > 0 || mask == -1 || mask == -3)				\
 	&& (first_time							\
 	    || NILP (Fget (XBUFFER (Vbuffer_local_symbols)->slot,	\
@@ -889,8 +890,9 @@
   /* Add on all the variables stored in special slots.  */
   {
     struct buffer *syms = XBUFFER (Vbuffer_local_symbols);
+  /* HST added (int) -- dangerous?? */
 #define MARKED_SLOT(slot)					\
-    { int mask = XFIXNUM (buffer_local_flags.slot);		\
+    { int mask = (int)XFIXNUM (buffer_local_flags.slot);	\
       if (mask == 0 || mask == -1				\
 	  || ((mask > 0) && (buf->local_var_flags & mask)))	\
         result = Fcons (Fcons (syms->slot, buf->slot), result);	\