mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(lookup_word): Rewrite to avoid cast.
This commit is contained in:
1 parent
e9d449928d
commit
a3b96dbd55
1 file changed
+5
-2
+5
-2
@@ -768,8 +768,11 @@ lookup_word (parser_control const *pc, char *word)
|
||||
|
||||
/* Make it uppercase. */
|
||||
for (p = word; *p; p++)
|
||||
if (ISLOWER ((unsigned char) *p))
|
||||
*p = toupper ((unsigned char) *p);
|
||||
{
|
||||
unsigned char ch = *p;
|
||||
if (ISLOWER (ch))
|
||||
*p = toupper (ch);
|
||||
}
|
||||
|
||||
for (tp = meridian_table; tp->name; tp++)
|
||||
if (strcmp (word, tp->name) == 0)
|
||||
|
||||
Reference in new issue
Block a user