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 | efc1188239bf4381b7749d2f43836bbb216cfc44 (patch) | |
tree | 9a0a95f19b6f13a515a51875a9bfa665acf273f7 /Objects/unicodeobject.c | |
parent | 770acd3f7fff52eef0d0ad02beaa4c569d70811f (diff) | |
download | cpython-git-efc1188239bf4381b7749d2f43836bbb216cfc44.tar.gz |
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dab3a75ab6..dde6b4704a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -6465,7 +6465,8 @@ PyObject *PyUnicode_Format(PyObject *format, "unsupported format character '%c' (0x%x) " "at index %i", (31<=c && c<=126) ? c : '?', - c, fmt -1 - PyUnicode_AS_UNICODE(uformat)); + c, + (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat))); goto onError; } if (sign) { |