Sfoglia il codice sorgente

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

Manuel Novoa III 22 anni fa
parent
commit
cbee182dd7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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)) {