changeset 27002:0ce3afff8247

(FACE_FROM_ID): Cast the arg ID to `unsigned'.
author Kenichi Handa <handa@m17n.org>
date Mon, 27 Dec 1999 05:29:55 +0000
parents b84a7b6ab411
children f6f431fc901b
files src/dispextern.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispextern.h	Mon Dec 27 05:29:29 1999 +0000
+++ b/src/dispextern.h	Mon Dec 27 05:29:55 1999 +0000
@@ -1320,7 +1320,7 @@
    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)