mirror of https://github.com/python/cpython
Kill a gcc warning introduced by r83988
This commit is contained in:
parent
47fcb5b4c3
commit
e406ef41b1
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue