unicodeobject.c 2.169
stringobject.c 2.189
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
PyErr_Format(PyExc_ValueError,
"unsupported format character '%c' (0x%x) "
"at index %i",
- c, c, fmt - 1 - PyString_AsString(format));
+ c, c,
+ (int)(fmt - 1 - PyString_AsString(format)));
goto error;
}
if (sign) {
"unsupported format character '%c' (0x%x) "
"at index %i",
(31<=c && c<=126) ? (int)c : '?',
- (int)c, (fmt -1 - PyUnicode_AS_UNICODE(uformat)));
+ (int)c,
+ (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat)));
goto onError;
}
if (sign) {