summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-12 14:43:41 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-12 14:43:41 (GMT)
commitefc1188239bf4381b7749d2f43836bbb216cfc44 (patch)
tree9a0a95f19b6f13a515a51875a9bfa665acf273f7 /Objects/stringobject.c
parent770acd3f7fff52eef0d0ad02beaa4c569d70811f (diff)
downloadcpython-efc1188239bf4381b7749d2f43836bbb216cfc44.zip
cpython-efc1188239bf4381b7749d2f43836bbb216cfc44.tar.gz
cpython-efc1188239bf4381b7749d2f43836bbb216cfc44.tar.bz2
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 c090e9b..92adb49 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) {