Skip to content

Commit

Permalink
Fix errors in Clang 13 (#62685)
Browse files Browse the repository at this point in the history
Without that patch, I was having this errors 
```
error: implicit conversion changes signedness: 'long' to 'uintptr_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
```
  • Loading branch information
kant2002 authored Dec 12, 2021
1 parent bf54733 commit 71bf3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/native/libs/System.Native/pal_threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ int32_t SystemNative_CreateThread(uintptr_t stackSize, void *(*startAddress)(voi

if (stackSize > 0)
{
if (stackSize < PTHREAD_STACK_MIN)
if (stackSize < (uintptr_t)PTHREAD_STACK_MIN)
{
stackSize = PTHREAD_STACK_MIN;
stackSize = (uintptr_t)PTHREAD_STACK_MIN;
}

error = pthread_attr_setstacksize(&attrs, stackSize);
Expand Down

0 comments on commit 71bf3ba

Please sign in to comment.