diff Objects/unicodeobject.c @ 74016:49b85dba251d

Issue #10951: Fix compiler warnings in timemodule.c and unicodeobject.c Thanks Jérémy Anger for the fix.
author Victor Stinner <victor.stinner@haypocalc.com>
date Sat, 17 Dec 2011 22:39:43 +0100
parents ea421c534305
children c802bfc8acfc
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Sat Dec 17 22:18:27 2011 +0100
+++ b/Objects/unicodeobject.c	Sat Dec 17 22:39:43 2011 +0100
@@ -4832,7 +4832,7 @@
     if (maxchar < 128 && size == unicode_size) {
         if (consumed)
             *consumed = size;
-        return unicode_fromascii(s, size);
+        return unicode_fromascii((const unsigned char *)s, size);
     }
 
     unicode = PyUnicode_New(unicode_size, maxchar);