From eadabd812da9942bec63107e6b6570f27bccb8a2 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Tue, 15 Aug 2023 17:24:51 +0100 Subject: [PATCH] gh-106242: Minor fixup to avoid compiler warnings --- Python/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/fileutils.c b/Python/fileutils.c index 0d31845a0fb11a..268ffa3d61a470 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; }