summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/unix/mpthreadport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/mpthreadport.c b/ports/unix/mpthreadport.c
index ded3bd14a..141cd0218 100644
--- a/ports/unix/mpthreadport.c
+++ b/ports/unix/mpthreadport.c
@@ -250,8 +250,8 @@ mp_uint_t mp_thread_create(void *(*entry)(void *), void *arg, size_t *stack_size
}
// minimum stack size is set by pthreads
- if (*stack_size < PTHREAD_STACK_MIN) {
- *stack_size = PTHREAD_STACK_MIN;
+ if (*stack_size < (size_t)PTHREAD_STACK_MIN) {
+ *stack_size = (size_t)PTHREAD_STACK_MIN;
}
// ensure there is enough stack to include a stack-overflow margin