diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-11-20 00:05:03 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-11-20 00:05:03 +0000 |
commit | 0bfbafd68cf56be71a160d8755255f7ad70f6211 (patch) | |
tree | 3e12a8d1ef0bf0e9108f1d297fe2c3328b1200df | |
parent | 8099eec7fac27371b4175bafb65657484f1440f4 (diff) |
Cast two ctype args to u_char.
-rw-r--r-- | usr.bin/lex/scanopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/lex/scanopt.c b/usr.bin/lex/scanopt.c index c3b9f6d3c0b..aab0d67c3fd 100644 --- a/usr.bin/lex/scanopt.c +++ b/usr.bin/lex/scanopt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scanopt.c,v 1.3 2015/11/19 23:34:56 mmcc Exp $ */ +/* $OpenBSD: scanopt.c,v 1.4 2015/11/20 00:05:02 mmcc Exp $ */ /* flex - tool to generate fast lexical analyzers */ @@ -48,7 +48,7 @@ static int STRCASECMP (a, b) const char *a; const char *b; { - while (tolower (*a++) == tolower (*b++)) ; + while (tolower ((u_char)*a++) == tolower ((u_char)*b++)) ; return b - a; } #endif |