commit | 56785eab33596af189c10ee7ebdc36fc2cd1e983 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Jun 05 00:46:29 2013 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Wed Jun 05 00:46:29 2013 +0200 |
tree | fc0aa2e16eb471008a25d21356bd9548147b6704 | |
parent | 796977360f4250c5a0e90f5ec230ac0af36d3c62 [diff] [blame] |
Issue #9566: Fix compiler warning on Windows 64-bit
diff --git a/Python/fileutils.c b/Python/fileutils.c index bb0cd43..293cb77 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c
@@ -707,7 +707,8 @@ _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;