Skip to content

Commit

Permalink
Update lib/system/threads.nim
Browse files Browse the repository at this point in the history
Fix int/uint in casting pointer.

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
  • Loading branch information
elcritch and Araq authored Nov 18, 2021
1 parent d317e0d commit 7d596e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/threads.nim
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ else:
when defined(zephyr):
var
rawstk = allocShared0(ThreadStackSize + StackGuardSize)
stk = cast[pointer](cast[int](rawstk) + StackGuardSize)
stk = cast[pointer](cast[uint](rawstk) + StackGuardSize)
let setstacksizeResult = pthread_attr_setstack(addr a, stk, ThreadStackSize)
else:
let setstacksizeResult = pthread_attr_setstacksize(a, ThreadStackSize)
Expand Down

0 comments on commit 7d596e1

Please sign in to comment.