diff options
| author | 2015-11-20 00:05:02 +0000 | |
|---|---|---|
| committer | 2015-11-20 00:05:02 +0000 | |
| commit | d9622a3d2bc48d1256352dfae1817801e4056edc (patch) | |
| tree | 8dfd09a0838afd9bc530d4cfd8d1ff25d1606402 | |
| parent | burn down all the gratutious alloca() compatability that autofuck injected (diff) | |
| download | wireguard-openbsd-d9622a3d2bc48d1256352dfae1817801e4056edc.tar.xz wireguard-openbsd-d9622a3d2bc48d1256352dfae1817801e4056edc.zip | |
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 |
