mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
This commit is contained in:
parent
770acd3f7f
commit
efc1188239
3 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue