* font.c (font_score): Use EMACS_INT, not int, to store XINT value.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jun 2011 06:18:06 +0000 (23:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jun 2011 06:18:06 +0000 (23:18 -0700)
src/ChangeLog
src/font.c

index 72f6b43..4aca4d0 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-22  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * font.c (font_score): Use EMACS_INT, not int, to store XINT value.
+
        * dispextern.h (struct face.stipple):
        * image.c (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
        (x_bitmap_mask, x_allocate_bitmap_record)
index dfc636e..1439033 100644 (file)
@@ -2107,8 +2107,8 @@ font_score (Lisp_Object entity, Lisp_Object *spec_prop)
     {
       /* We use the higher 6-bit for the actual size difference.  The
         lowest bit is set if the DPI is different.  */
-      int diff;
-      int pixel_size = XINT (spec_prop[FONT_SIZE_INDEX]);
+      EMACS_INT diff;
+      EMACS_INT pixel_size = XINT (spec_prop[FONT_SIZE_INDEX]);
 
       if (CONSP (Vface_font_rescale_alist))
        pixel_size *= font_rescale_ratio (entity);