Skip to content

Commit

Permalink
Core/Thread: fix comparison of different signedness (rdkcentral#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramoosterhuis committed Apr 26, 2024
1 parent 02b223d commit 5fcce66
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 5fcce66

Please sign in to comment.