Kaydet (Commit) 56785eab authored tarafından Victor Stinner's avatar Victor Stinner

Issue #9566: Fix compiler warning on Windows 64-bit

üst 79697736
......@@ -707,7 +707,8 @@ wchar_t*
_Py_wgetcwd(wchar_t *buf, size_t size)
{
#ifdef MS_WINDOWS
return _wgetcwd(buf, size);
int isize = (int)Py_MIN(size, INT_MAX);
return _wgetcwd(buf, isize);
#else
char fname[PATH_MAX];
wchar_t *wname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment