mirror of
https://github.com/python/cpython.git
synced 2025-10-15 19:29:46 +00:00
Use the new Py_ARRAY_LENGTH macro
This commit is contained in:
parent
b9dcffb51e
commit
639418812f
15 changed files with 26 additions and 28 deletions
|
@ -1771,7 +1771,7 @@ sys_update_path(int argc, wchar_t **argv)
|
|||
the argument must be the full path anyway. */
|
||||
wchar_t *ptemp;
|
||||
if (GetFullPathNameW(argv0,
|
||||
sizeof(fullpath)/sizeof(fullpath[0]),
|
||||
Py_ARRAY_LENGTH(fullpath),
|
||||
fullpath,
|
||||
&ptemp)) {
|
||||
argv0 = fullpath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue