(yylex): Do not pass signed char to isupper; it's not portable.

This commit is contained in:
Paul Eggert
2002-08-12 14:57:12 +00:00
parent 48c4080d0d
commit 6563aa9221

View File

@@ -1,5 +1,5 @@
# Checking GLR Parsing. -*- Autotest -*- # Checking GLR Parsing. -*- Autotest -*-
# Copyright 2002 Free Software Foundation, Inc. # Copyright (C) 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -128,7 +128,7 @@ yylex ()
ungetc (c, stdin); ungetc (c, stdin);
scanf ("%[A-Za-z0-9_]", buffer); scanf ("%[A-Za-z0-9_]", buffer);
yylval = strdup (buffer); yylval = strdup (buffer);
return isupper (buffer[0]) ? TYPENAME : ID; return isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
} }
return c; return c;
} }