OSDN Git Service

Allow building on 64 bit archs. Hopefully the last cvs activity this
authorManuel Novoa III <mjn3@codepoet.org>
Thu, 5 Feb 2004 02:38:27 +0000 (02:38 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Thu, 5 Feb 2004 02:38:27 +0000 (02:38 -0000)
stuff will see other than "delete".

extra/locale/gen_wctype.c

index 6a90b92..ab5c5dd 100644 (file)
@@ -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)) {