From: Steve Dower Date: Tue, 15 Aug 2023 17:02:32 +0000 (+0100) Subject: gh-106242: Minor fixup to avoid compiler warnings (GH-107983) X-Git-Tag: v3.13.0a1~965 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34e1917912f05e3ab5c9b1e39f678bd36388499e;p=thirdparty%2FPython%2Fcpython.git gh-106242: Minor fixup to avoid compiler warnings (GH-107983) --- diff --git a/Python/fileutils.c b/Python/fileutils.c index 0ffd9885fdc8..9c4998397c4a 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; }