summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMamy Ratsimbazafy <mamy_github@numforge.co>2019-11-25 08:42:19 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-11-25 08:42:19 +0100
commit1f7871ea1c0b521634631f45c513a213ea3f501d (patch)
tree3c63e30242c3a192bc52098db8535ea5a41b2503
parent015bec625461826c3891110182b982c5dbb3208a (diff)
downloadNim-1f7871ea1c0b521634631f45c513a213ea3f501d.tar.gz
csize_t changes: pinToCpu didn't compile (#12725)
-rw-r--r--lib/system/threads.nim2
1 files changed, 1 insertions, 1 deletions
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)