From: Victor Stinner Date: Wed, 23 Mar 2016 10:31:58 +0000 (+0100) Subject: getpathp.c: fix compiler warning X-Git-Tag: v3.6.0a1~382 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccb1f8cb1a9faabe3a3ef90b64257f632052c368;p=thirdparty%2FPython%2Fcpython.git getpathp.c: fix compiler warning wcsnlen_s() result type is size_t. --- diff --git a/PC/getpathp.c b/PC/getpathp.c index c7ddf1ea6b33..cb9f1db48845 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -135,7 +135,7 @@ exists(wchar_t *filename) static int ismodule(wchar_t *filename, int update_filename) /* Is module -- check for .pyc/.pyo too */ { - int n; + size_t n; if (exists(filename)) return 1; @@ -553,7 +553,7 @@ calculate_path(void) envpath = NULL; pythonhome = argv0_path; } - + /* Look for a 'home' variable and set argv0_path to it, if found */ if (find_env_config_value(env_file, L"home", tmpbuffer)) { wcscpy_s(argv0_path, MAXPATHLEN+1, tmpbuffer);