Browse Source

Allow building on 64 bit archs. Hopefully the last cvs activity this
stuff will see other than "delete".

Manuel Novoa III 21 years ago
parent
commit
cbee182dd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      extra/locale/gen_wctype.c

+ 2 - 2
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)) {