[Python-checkins] r72326 - python/trunk/Objects/unicodeobject.c

georg.brandl python-checkins at python.org
Tue May 5 11:19:44 CEST 2009


Author: georg.brandl
Date: Tue May  5 11:19:43 2009
New Revision: 72326

Log:
#5929: fix signedness warning.

Modified:
   python/trunk/Objects/unicodeobject.c

Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c	(original)
+++ python/trunk/Objects/unicodeobject.c	Tue May  5 11:19:43 2009
@@ -741,7 +741,7 @@
             case 's':
             {
                 /* UTF-8 */
-                unsigned char *s = va_arg(count, unsigned char*);
+                const char *s = va_arg(count, const char*);
                 PyObject *str = PyUnicode_DecodeUTF8(s, strlen(s), "replace");
                 if (!str)
                     goto fail;


More information about the Python-checkins mailing list