diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 22:47:44 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 22:47:44 +0000 |
commit | a3b96dbd55ca16a743a07df751f2bb0f7812f126 (patch) | |
tree | f0fe15bd3b8bd14f4d04ea2a69ce802ff2683322 /lib | |
parent | e9d449928d5f1b99f49569bc8577817a7ea1ff4d (diff) | |
download | coreutils-a3b96dbd55ca16a743a07df751f2bb0f7812f126.tar.xz |
(lookup_word): Rewrite to avoid cast.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getdate.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index 5784b6ccd..9d948dc12 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -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) |