From: Victor Stinner Date: Sat, 14 Aug 2010 00:07:14 +0000 (+0000) Subject: Kill a gcc warning introduced by r83988 X-Git-Tag: v3.2a2~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e406ef41b162698478df3f7a000999debb7135f7;p=thirdparty%2FPython%2Fcpython.git Kill a gcc warning introduced by r83988 --- diff --git a/Modules/getpath.c b/Modules/getpath.c index faf8b562886a..2c55e18b0eee 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -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';