From e406ef41b162698478df3f7a000999debb7135f7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 14 Aug 2010 00:07:14 +0000 Subject: Kill a gcc warning introduced by r83988 --- Modules/getpath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/getpath.c b/Modules/getpath.c index faf8b56..2c55e18 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'; -- cgit v0.12