Fix a compiler warning in _PyUnicode_CheckConsistency()
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 21 Nov 2011 21:54:05 +0000 (22:54 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 21 Nov 2011 21:54:05 +0000 (22:54 +0100)
Objects/unicodeobject.c

index bcd5b6438e452fa0a256721edf796f11537a89c2..5a2b70884ceff7638e3772f9bc7cf1ee9e75b932 100644 (file)
@@ -401,7 +401,7 @@ _PyUnicode_CheckConsistency(PyObject *op, int check_content)
                 else
                     printf("U+%04x", ch);
             }
-            printf("} (len=%u)\n", ascii->length);
+            printf("} (len=%lu)\n", ascii->length);
             abort();
         }
         if (kind == PyUnicode_1BYTE_KIND) {