mirror of https://github.com/python/cpython
gh-106242: Minor fixup to avoid compiler warnings (GH-107983)
This commit is contained in:
parent
971a4c2751
commit
34e1917912
|
@ -2383,7 +2383,7 @@ wchar_t *
|
|||
_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t *normsize)
|
||||
{
|
||||
assert(path != NULL);
|
||||
if (!path[0] && size < 0 || size == 0) {
|
||||
if ((size < 0 && !path[0]) || size == 0) {
|
||||
*normsize = 0;
|
||||
return path;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue