From 9a5ad1b558172d894e6dba81e5f68c3628087b28 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 26 Dec 2024 18:21:05 +0900 Subject: [PATCH] Fix -Wsign-compare warning on mingw --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread.c b/thread.c index 961e604856..d5da3e3856 100644 --- a/thread.c +++ b/thread.c @@ -5512,7 +5512,7 @@ Init_Thread(void) if (ptr) { long quantum = strtol(ptr, NULL, 0); - if (quantum > 0 && quantum <= UINT32_MAX) { + if (quantum > 0 && !(SIZEOF_LONG > 4 && quantum > UINT32_MAX)) { thread_default_quantum_ms = (uint32_t)quantum; } else if (0) {