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

This commit is contained in:
Victor Stinner 2013-06-05 00:46:29 +02:00
parent 796977360f
commit 56785eab33
1 changed files with 2 additions and 1 deletions

View File

@ -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;