summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/parse-date.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/parse-date.y b/lib/parse-date.y
index a8f710cd8..620626e29 100644
--- a/lib/parse-date.y
+++ b/lib/parse-date.y
@@ -990,10 +990,8 @@ static table const * lookup_word(parser_control const *pc, char *word)
int abbrev;
/* Make it uppercase. */
- for (p = word; *p; p++) {
- unsigned char ch = *p;
- *p = c_toupper (ch);
- }
+ for (p = word; *p; p++)
+ *p = c_toupper (to_uchar (*p));
for (tp = meridian_table; tp->name; tp++)
if (strcmp (word, tp->name) == 0)