mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_HAL_SITL: cast PTHREAD_STACK_MIN to unsigned
Sometimes this comes in as signed...
This commit is contained in:
parent
90ea847cad
commit
556e836a66
@ -257,8 +257,8 @@ 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) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user