]> git.eshelyaron.com Git - emacs.git/commitdiff
(FACE_FROM_ID): Cast the arg ID to `unsigned'.
authorKenichi Handa <handa@m17n.org>
Mon, 27 Dec 1999 05:29:55 +0000 (05:29 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 27 Dec 1999 05:29:55 +0000 (05:29 +0000)
src/dispextern.h

index 5516d13688cd5488c7c33938e839bae91920760e..63eb3b89063160d1493060e4cc2d513d65122025 100644 (file)
@@ -1320,7 +1320,7 @@ struct face_cache
    face doesn't exist.  */
 
 #define FACE_FROM_ID(F, ID)                            \
-     (((ID) >= 0 && (ID) < FRAME_FACE_CACHE (F)->used) \
+     (((unsigned) (ID) < FRAME_FACE_CACHE (F)->used)   \
       ? FRAME_FACE_CACHE (F)->faces_by_id[ID]          \
       : NULL)