bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix -Wall warning


From: Hideki IWAMOTO
Subject: [PATCH] fix -Wall warning
Date: Sun, 23 Feb 2003 02:49:54 +0900

gtagsop.c: In function `gtags_first':
gtagsop.c:661: warning: array subscript has type `char'
gtagsop.c:664: warning: array subscript has type `char'


Index: libutil/gtagsop.h
===================================================================
RCS file: /cvsroot/global/global/libutil/gtagsop.h,v
retrieving revision 1.9
diff -u -r1.9 gtagsop.h
--- libutil/gtagsop.h   22 Jul 2002 06:29:15 -0000      1.9
+++ libutil/gtagsop.h   22 Feb 2003 17:43:22 -0000
@@ -58,7 +58,7 @@
 #define GTOP_NOREGEX           8       /* don't use regular expression */
 #define GTOP_IGNORECASE                16      /* ignore case distinction */
 
-#define isregexchar(c) (regexchar[c])
+#define isregexchar(c) (regexchar[(unsigned char)(c)])
 
 typedef struct {
        DBOP    *dbop;                  /* descripter of DBOP */

----
岩本 秀樹  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]