From 1f7871ea1c0b521634631f45c513a213ea3f501d Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Mon, 25 Nov 2019 08:42:19 +0100 Subject: csize_t changes: pinToCpu didn't compile (#12725) --- lib/system/threads.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/system/threads.nim') diff --git a/lib/system/threads.nim b/lib/system/threads.nim index b09ed0c6f..1f955307b 100644 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -327,7 +327,7 @@ else: var s {.noinit.}: CpuSet cpusetZero(s) cpusetIncl(cpu.cint, s) - setAffinity(t.sys, sizeof(s), s) + setAffinity(t.sys, csize_t(sizeof(s)), s) proc createThread*(t: var Thread[void], tp: proc () {.thread, nimcall.}) = createThread[void](t, tp) -- cgit 1.4.1-2-gfad0