]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Kill a gcc warning introduced by r83988
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 14 Aug 2010 00:07:14 +0000 (00:07 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 14 Aug 2010 00:07:14 +0000 (00:07 +0000)
Modules/getpath.c

index faf8b562886a09bad79c77d405c3f742ed337344..2c55e18b0eee6decc57a9e47ad0ae322306c652b 100644 (file)
@@ -416,7 +416,8 @@ search_for_exec_prefix(wchar_t *argv0_path, wchar_t *home)
             fclose(f);
             decoded = PyUnicode_DecodeUTF8(buf, n, "surrogateescape");
             if (decoded != NULL) {
-                n = PyUnicode_AsWideChar(decoded, rel_builddir_path, MAXPATHLEN);
+                n = PyUnicode_AsWideChar((PyUnicodeObject*)decoded,
+                                         rel_builddir_path, MAXPATHLEN);
                 Py_DECREF(decoded);
                 if (n >= 0) {
                     rel_builddir_path[n] = L'\0';