summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/locale/gen_wctype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/locale/gen_wctype.c b/extra/locale/gen_wctype.c
index 6a90b92c7..ab5c5dd78 100644
--- a/extra/locale/gen_wctype.c
+++ b/extra/locale/gen_wctype.c
@@ -442,8 +442,8 @@ int main(int argc, char **argv)
}
wct[c/2] |= d;
- l = towlower(c) - c;
- u = towupper(c) - c;
+ l = (long)(int) towlower(c) - c;
+ u = (long)(int) towupper(c) - c;
ult[c] = 0;
if (l || u) {
if ((l != (short)l) || (u != (short)u)) {