Browse Source

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

Manuel Novoa III 22 năm trước cách đây
mục cha
commit
cbee182dd7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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)) {