From: Glenn Morris Date: Fri, 16 Jan 2009 03:26:29 +0000 (+0000) Subject: (Ffont_variation_glyphs): Silence compiler. X-Git-Tag: emacs-pretest-23.0.90~421 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b60861e61fcb51c9cd07a446d97628ca344ef82c;p=emacs.git (Ffont_variation_glyphs): Silence compiler. --- 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