changeset 97847:2fb5b268febb

(LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 29 Aug 2008 08:40:01 +0000
parents f99c11da6d3f
children d1e61da65cce
files src/composite.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/composite.h	Fri Aug 29 08:39:35 2008 +0000
+++ b/src/composite.h	Fri Aug 29 08:40:01 2008 +0000
@@ -277,7 +277,7 @@
   do {									\
     if (val == FONT_INVALID_CODE)					\
       ASET ((g), LGLYPH_IX_CODE, Qnil);					\
-    else if (val > MOST_POSITIVE_FIXNUM)				\
+    else if ((EMACS_INT)val > MOST_POSITIVE_FIXNUM)			\
       ASET ((g), LGLYPH_IX_CODE, Fcons (make_number ((val) >> 16),	\
 					make_number ((val) & 0xFFFF)));	\
     else								\