From 7d596e1a5e411533ced0a0ff3ea60eca1a870d0b Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Wed, 17 Nov 2021 16:23:02 -0800 Subject: [PATCH] Update lib/system/threads.nim Fix int/uint in casting pointer. Co-authored-by: Andreas Rumpf --- lib/system/threads.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 3b61924282e35..bfb1218890851 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -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)