Fix warnings on 64-bit platforms about casts from pointers to ints.

Two of these were real bugs.
This commit is contained in:
Guido van Rossum 2002-09-12 14:43:41 +00:00
parent 770acd3f7f
commit efc1188239
3 changed files with 5 additions and 3 deletions

View file

@ -6465,7 +6465,8 @@ PyObject *PyUnicode_Format(PyObject *format,
"unsupported format character '%c' (0x%x) "
"at index %i",
(31<=c && c<=126) ? c : '?',
c, fmt -1 - PyUnicode_AS_UNICODE(uformat));
c,
(int)(fmt -1 - PyUnicode_AS_UNICODE(uformat)));
goto onError;
}
if (sign) {