diff options
author | Mamy Ratsimbazafy <mamy_github@numforge.co> | 2019-11-25 08:42:19 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-25 08:42:19 +0100 |
commit | 1f7871ea1c0b521634631f45c513a213ea3f501d (patch) | |
tree | 3c63e30242c3a192bc52098db8535ea5a41b2503 /lib/system | |
parent | 015bec625461826c3891110182b982c5dbb3208a (diff) | |
download | Nim-1f7871ea1c0b521634631f45c513a213ea3f501d.tar.gz |
csize_t changes: pinToCpu didn't compile (#12725)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/threads.nim | 2 |
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) |