]> granicus.if.org Git - python/commitdiff
#5929: fix signedness warning.
authorGeorg Brandl <georg@python.org>
Tue, 5 May 2009 09:19:43 +0000 (09:19 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 5 May 2009 09:19:43 +0000 (09:19 +0000)
Objects/unicodeobject.c

index ec68f3ed3a1e2f247154bf1dc00d83426244f37b..32836433007ec7cbbe1780859552c9b9a5b4ee99 100644 (file)
@@ -741,7 +741,7 @@ PyUnicode_FromFormatV(const char *format, va_list vargs)
             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;