From b60861e61fcb51c9cd07a446d97628ca344ef82c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 16 Jan 2009 03:26:29 +0000 Subject: [PATCH] (Ffont_variation_glyphs): Silence compiler. --- src/ChangeLog | 4 ++++ src/font.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6ec71d10cc2..84ce85150bb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-01-16 Glenn Morris + + * font.c (Ffont_variation_glyphs): Silence compiler. + 2009-01-15 Juanma Barranquero * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility. diff --git a/src/font.c b/src/font.c index b7f4c42fc62..178e6d32429 100644 --- a/src/font.c +++ b/src/font.c @@ -4451,8 +4451,10 @@ where { Lisp_Object code; int vs = (i < 16 ? 0xFE00 + i : 0xE0100 + (i - 16)); + /* Stops GCC whining about limited range of data type. */ + EMACS_INT var = variations[i]; - if (variations[i] > MOST_POSITIVE_FIXNUM) + if (var > MOST_POSITIVE_FIXNUM) code = Fcons (make_number ((variations[i]) >> 16), make_number ((variations[i]) & 0xFFFF)); else -- 2.39.2