commit | efc1188239bf4381b7749d2f43836bbb216cfc44 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Sep 12 14:43:41 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Sep 12 14:43:41 2002 +0000 |
tree | 9a0a95f19b6f13a515a51875a9bfa665acf273f7 | |
parent | 770acd3f7fff52eef0d0ad02beaa4c569d70811f [diff] [blame] |
Fix warnings on 64-bit platforms about casts from pointers to ints. Two of these were real bugs.
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 @@ 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) {