projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aed3a4
)
getpathp.c: fix compiler warning
author
Victor Stinner
<victor.stinner@gmail.com>
Wed, 23 Mar 2016 10:31:58 +0000
(11:31 +0100)
committer
Victor Stinner
<victor.stinner@gmail.com>
Wed, 23 Mar 2016 10:31:58 +0000
(11:31 +0100)
wcsnlen_s() result type is size_t.
PC/getpathp.c
patch
|
blob
|
history
diff --git
a/PC/getpathp.c
b/PC/getpathp.c
index c7ddf1ea6b33eb6d55457eab82f9802a2512b0cd..cb9f1db488453ccc5166fc0ab52cb3fda8151018 100644
(file)
--- 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 */
{
-
in
t 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);