mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +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 -*-
|
# 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user