AP_HAL_SITL: cast PTHREAD_STACK_MIN to unsigned

Sometimes this comes in as signed...
This commit is contained in:
Peter Barker 2019-02-08 17:31:27 +11:00 committed by Peter Barker
parent 90ea847cad
commit 556e836a66

View File

@ -257,7 +257,7 @@ bool Scheduler::thread_create(AP_HAL::MemberProc proc, const char *name, uint32_
stack_size += 2300; stack_size += 2300;
pthread_t thread {}; pthread_t thread {};
uint32_t alloc_stack = MAX(PTHREAD_STACK_MIN,stack_size); const uint32_t alloc_stack = MAX(size_t(PTHREAD_STACK_MIN),stack_size);
struct thread_attr *a = new struct thread_attr; struct thread_attr *a = new struct thread_attr;
if (!a) { if (!a) {