summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-14 00:07:14 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-14 00:07:14 (GMT)
commite406ef41b162698478df3f7a000999debb7135f7 (patch)
tree358669a8450629b423a8f19fd212b77c2b54cff5 /Modules/getpath.c
parent47fcb5b4c31eb6ed2042e2e558a640524dc0c986 (diff)
downloadcpython-e406ef41b162698478df3f7a000999debb7135f7.zip
cpython-e406ef41b162698478df3f7a000999debb7135f7.tar.gz
cpython-e406ef41b162698478df3f7a000999debb7135f7.tar.bz2
Kill a gcc warning introduced by r83988
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c3
1 files changed, 2 insertions, 1 deletions
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';