Skip to content

Commit

Permalink
gh-106242: Minor fixup to avoid compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Aug 15, 2023
1 parent ae5e111 commit 5c129d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,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

1 comment on commit 5c129d9

@staffserg
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

Please sign in to comment.