diff Objects/unicodeobject.c @ 25370:651abcf63fe1 2.2

Backport from trunk: unicodeobject.c 2.169 stringobject.c 2.189 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 Mon, 23 Sep 2002 21:17:27 +0000
parents 37d88b42ed11
children e84d324ac66a
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Mon Sep 23 21:04:09 2002 +0000
+++ b/Objects/unicodeobject.c	Mon Sep 23 21:17:27 2002 +0000
@@ -5642,7 +5642,8 @@
                              "unsupported format character '%c' (0x%x) "
                              "at index %i",
                              (31<=c && c<=126) ? (int)c : '?', 
-                             (int)c, (fmt -1 - PyUnicode_AS_UNICODE(uformat)));
+                             (int)c,
+                             (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat)));
                 goto onError;
 	    }
 	    if (sign) {