From 4caa77b0d7a81000367c8a97a6832c868dc7fb3d 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 b66c64d8c..4b51966fe 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); }