mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
(yylex): Do not pass signed char to isupper; it's not portable.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# 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
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -128,7 +128,7 @@ yylex ()
|
||||
ungetc (c, stdin);
|
||||
scanf ("%[A-Za-z0-9_]", buffer);
|
||||
yylval = strdup (buffer);
|
||||
return isupper (buffer[0]) ? TYPENAME : ID;
|
||||
return isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user