* dispextern.h (struct glyph): Make u.img_id int, not unsigned.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Feb 2011 02:41:48 +0000 (18:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Feb 2011 02:41:48 +0000 (18:41 -0800)
It's always given int values and used as an int.  This suppresses
a gcc "comparison of unsigned expression >= 0" warning in some
configurations.

src/ChangeLog
src/dispextern.h

index 05681aa..184a1bd 100644 (file)
@@ -1,5 +1,10 @@
 2011-02-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
+       It's always given int values and used as an int.  This suppresses
+       a gcc "comparison of unsigned expression >= 0" warning in some
+       configurations.
+
        * dispnew.c: Rename locals to avoid shadowing.
        (update_text_area, scrolling_window, update_frame_1): Rename locals.
 
index 6bb0c3a..37ae7ee 100644 (file)
@@ -431,7 +431,7 @@ struct glyph
     } cmp;
 
     /* Image ID for image glyphs (type == IMAGE_GLYPH).  */
-    unsigned img_id;
+    int img_id;
 
     /* Sub-structure for type == STRETCH_GLYPH.  */
     struct