mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
fix countProcessors error return value. (#5942)
This commit is contained in:
committed by
Andreas Rumpf
parent
cd51628f57
commit
2c5053caef
@@ -69,4 +69,4 @@ proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
|
||||
result = affinitySpaceTotal().int
|
||||
else:
|
||||
result = sysconf(SC_NPROCESSORS_ONLN)
|
||||
if result <= 0: result = 1
|
||||
if result <= 0: result = 0
|
||||
|
||||
Reference in New Issue
Block a user