]> granicus.if.org Git - python/commitdiff
Merged revisions 72326 via svnmerge from
authorGeorg Brandl <georg@python.org>
Tue, 5 May 2009 09:19:59 +0000 (09:19 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 5 May 2009 09:19:59 +0000 (09:19 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72326 | georg.brandl | 2009-05-05 11:19:43 +0200 (Di, 05 Mai 2009) | 1 line

  #5929: fix signedness warning.
........

Objects/unicodeobject.c

index 218e70b0938dcc4b881be802a4af6ffdad779c5f..fc5c1c536ed952f9b978739f1304fc58544282b8 100644 (file)
@@ -791,7 +791,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;