summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-12 14:43:41 +0000
committerGuido van Rossum <guido@python.org>2002-09-12 14:43:41 +0000
commitcd15fa4abd2e5989fcf61557957e1fe9b27a4e17 (patch)
tree4b3b25cba98620b1aa381d0bd1c36576b3e0a7e7 /Objects/stringobject.c
parentfcaa20e34f6f9e37d9c43937f9ff02f600b52ee3 (diff)
downloadcpython-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.c3
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) {