Kill a gcc warning introduced by r83988

This commit is contained in:
Victor Stinner 2010-08-14 00:07:14 +00:00
parent 47fcb5b4c3
commit e406ef41b1
1 changed files with 2 additions and 1 deletions

View 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';