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

@ -3883,7 +3883,8 @@ PyString_Format(PyObject *format, PyObject *args)
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) {