Skip to content

Commit

Permalink
Core/Thread: fix comparison of different signedness (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramoosterhuis committed Oct 13, 2023
1 parent edbc9ac commit 4caa77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/core/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t>(PTHREAD_STACK_MIN)) ? PTHREAD_STACK_MIN : stackSize;
err = pthread_attr_setstacksize(&attr, new_size);
ASSERT(err == 0);
}
Expand Down

0 comments on commit 4caa77b

Please sign in to comment.