diff options
author | Guido van Rossum <guido@python.org> | 2002-09-12 14:43:41 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-09-12 14:43:41 +0000 |
commit | cd15fa4abd2e5989fcf61557957e1fe9b27a4e17 (patch) | |
tree | 4b3b25cba98620b1aa381d0bd1c36576b3e0a7e7 /Objects/stringobject.c | |
parent | fcaa20e34f6f9e37d9c43937f9ff02f600b52ee3 (diff) | |
download | cpython-cd15fa4abd2e5989fcf61557957e1fe9b27a4e17.tar.gz |
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index c090e9b2d6..92adb490cc 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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) { |