Skip to content

Commit

Permalink
gh-106242: Minor fixup to avoid compiler warnings (GH-107983)
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Aug 15, 2023
1 parent 971a4c2 commit 34e1917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/fileutils.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 34e1917

Please sign in to comment.