Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e406ef4

Browse files
author
Victor Stinner
committed
Kill a gcc warning introduced by r83988
1 parent 47fcb5b commit e406ef4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/getpath.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ search_for_exec_prefix(wchar_t *argv0_path, wchar_t *home)
416416
fclose(f);
417417
decoded = PyUnicode_DecodeUTF8(buf, n, "surrogateescape");
418418
if (decoded != NULL) {
419-
n = PyUnicode_AsWideChar(decoded, rel_builddir_path, MAXPATHLEN);
419+
n = PyUnicode_AsWideChar((PyUnicodeObject*)decoded,
420+
rel_builddir_path, MAXPATHLEN);
420421
Py_DECREF(decoded);
421422
if (n >= 0) {
422423
rel_builddir_path[n] = L'\0';

0 commit comments

Comments
 (0)