summaryrefslogtreecommitdiff
path: root/PC/getpathp.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 11:31:58 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 11:31:58 +0100
commite2786417d855c445baceba34d276819dd5cfab06 (patch)
treec6475d0bc2477fac8bbe274e9b3ca68a0dfe1089 /PC/getpathp.c
parenta964eea91044be265e0f05e036f8c3f142ddd5db (diff)
downloadcpython-e2786417d855c445baceba34d276819dd5cfab06.tar.gz
getpathp.c: fix compiler warning
wcsnlen_s() result type is size_t.
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r--PC/getpathp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index c7ddf1ea6b..cb9f1db488 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);