Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 25233:8d751b62ecc4 legacy-trunk
Fix warnings on 64-bit platforms about casts from pointers to ints.
Two of these were real bugs.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 12 Sep 2002 14:43:41 +0000 |
| parents | 953ebe0c0c25 |
| children | fc2b73802f7b |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Sep 12 14:41:20 2002 +0000 +++ b/Objects/unicodeobject.c Thu Sep 12 14:43:41 2002 +0000 @@ -6465,7 +6465,8 @@ "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) {
