From: Paul Eggert Date: Mon, 12 Aug 2002 14:57:12 +0000 (+0000) Subject: (yylex): Do not pass signed char to isupper; it's not portable. X-Git-Tag: BISON-1_49b~9 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6563aa9221b7d1148abaad4fbdce3ea5cf1f0d4e (yylex): Do not pass signed char to isupper; it's not portable. --- diff --git a/tests/cxx-type.at b/tests/cxx-type.at index 4e8762f2..1c67c712 100644 --- a/tests/cxx-type.at +++ b/tests/cxx-type.at @@ -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; }