mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
getpathp.c: fix compiler warning
wcsnlen_s() result type is size_t.
This commit is contained in:
parent
0aed3a4ebc
commit
ccb1f8cb1a
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ exists(wchar_t *filename)
|
||||||
static int
|
static int
|
||||||
ismodule(wchar_t *filename, int update_filename) /* Is module -- check for .pyc/.pyo too */
|
ismodule(wchar_t *filename, int update_filename) /* Is module -- check for .pyc/.pyo too */
|
||||||
{
|
{
|
||||||
int n;
|
size_t n;
|
||||||
|
|
||||||
if (exists(filename))
|
if (exists(filename))
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -553,7 +553,7 @@ calculate_path(void)
|
||||||
envpath = NULL;
|
envpath = NULL;
|
||||||
pythonhome = argv0_path;
|
pythonhome = argv0_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Look for a 'home' variable and set argv0_path to it, if found */
|
/* Look for a 'home' variable and set argv0_path to it, if found */
|
||||||
if (find_env_config_value(env_file, L"home", tmpbuffer)) {
|
if (find_env_config_value(env_file, L"home", tmpbuffer)) {
|
||||||
wcscpy_s(argv0_path, MAXPATHLEN+1, tmpbuffer);
|
wcscpy_s(argv0_path, MAXPATHLEN+1, tmpbuffer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue