Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 72510:b534b56379cb
Use the new Py_ARRAY_LENGTH macro
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 29 Sep 2011 00:42:28 +0200 |
| parents | 606652491366 |
| children | 5e33219492bc |
line wrap: on
line diff
--- a/Python/sysmodule.c Thu Sep 29 00:39:24 2011 +0200 +++ b/Python/sysmodule.c Thu Sep 29 00:42:28 2011 +0200 @@ -1771,7 +1771,7 @@ 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;
