]> granicus.if.org Git - flex/commitdiff
more careful/paranoia
authorWill Estes <wlestes@users.sourceforge.net>
Fri, 3 Feb 2012 22:21:37 +0000 (22:21 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Fri, 3 Feb 2012 22:21:37 +0000 (22:21 +0000)
misc.c

diff --git a/misc.c b/misc.c
index 1009dea948b194a49888038e129891ac01c3b7ac..a65a50af0a7f9749b074efe684edea3906621e48 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -184,7 +184,7 @@ int all_lower (str)
      register char *str;
 {
        while (*str) {
-               if (!isascii ((Char) * str) || !islower (*str))
+               if (!isascii ((Char) * str) || !islower ((Char) * str))
                        return 0;
                ++str;
        }
@@ -199,7 +199,7 @@ int all_upper (str)
      register char *str;
 {
        while (*str) {
-               if (!isascii ((Char) * str) || !isupper (*str))
+               if (!isascii ((Char) * str) || !isupper ((Char) * str))
                        return 0;
                ++str;
        }
@@ -675,7 +675,7 @@ Char myesc (array)
                        int     sptr = 2;
 
                        while (isascii (array[sptr]) &&
-                              isxdigit ((char) array[sptr]))
+                              isxdigit (array[sptr]))
                                /* Don't increment inside loop control
                                 * because if isdigit() is a macro it might
                                 * expand into multiple increments ...