diff options
author | Steve Dower <steve.dower@python.org> | 2023-08-15 17:02:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 17:02:32 (GMT) |
commit | 34e1917912f05e3ab5c9b1e39f678bd36388499e (patch) | |
tree | eacd674dc1dcb3d16c79beb008328f4d1c765aba /Python | |
parent | 971a4c27517e76155a4a489096eba69c53a7b9e9 (diff) | |
download | cpython-34e1917912f05e3ab5c9b1e39f678bd36388499e.zip cpython-34e1917912f05e3ab5c9b1e39f678bd36388499e.tar.gz cpython-34e1917912f05e3ab5c9b1e39f678bd36388499e.tar.bz2 |
gh-106242: Minor fixup to avoid compiler warnings (GH-107983)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 0ffd988..9c49983 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -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; } |