From 5fcce66f4c22be3587c62c3e693e35b7b0c14d93 Mon Sep 17 00:00:00 2001 From: Bram Oosterhuis Date: Fri, 13 Oct 2023 15:55:20 +0200 Subject: [PATCH] Core/Thread: fix comparison of different signedness (#1428) --- Source/core/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/core/Thread.cpp b/Source/core/Thread.cpp index b66c64d8cc..4b51966fee 100644 --- a/Source/core/Thread.cpp +++ b/Source/core/Thread.cpp @@ -81,7 +81,7 @@ namespace Core { ASSERT(err == 0); if ((err == 0) && (stackSize != 0)) { - size_t new_size = (stackSize < PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : stackSize; + size_t new_size = (stackSize < static_cast(PTHREAD_STACK_MIN)) ? PTHREAD_STACK_MIN : stackSize; err = pthread_attr_setstacksize(&attr, new_size); ASSERT(err == 0); }