Skip to content

Commit 6473276

Browse files
committed
unix/mpthreadport: Ensure consistent type of PTHREAD_STACK_MIN.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
1 parent 5f058e9 commit 6473276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/unix/mpthreadport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ mp_uint_t mp_thread_create(void *(*entry)(void *), void *arg, size_t *stack_size
250250
}
251251

252252
// minimum stack size is set by pthreads
253-
if (*stack_size < PTHREAD_STACK_MIN) {
254-
*stack_size = PTHREAD_STACK_MIN;
253+
if (*stack_size < (size_t)PTHREAD_STACK_MIN) {
254+
*stack_size = (size_t)PTHREAD_STACK_MIN;
255255
}
256256

257257
// ensure there is enough stack to include a stack-overflow margin

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy