mirror of
https://github.com/janet-lang/janet
synced 2024-11-29 03:19:54 +00:00
typo
This commit is contained in:
parent
677ae46f0c
commit
dfa78ad3c6
@ -232,7 +232,7 @@ JANET_CORE_FN(os_cpu_count,
|
|||||||
const int name[2] = {CTL_HW, HW_NCPUONLINE};
|
const int name[2] = {CTL_HW, HW_NCPUONLINE};
|
||||||
int result = 0;
|
int result = 0;
|
||||||
size_t len = sizeof(int);
|
size_t len = sizeof(int);
|
||||||
if (-1 == sysctl(name, 2, &result, &len, ,NULL, 0)) {
|
if (-1 == sysctl(name, 2, &result, &len, NULL, 0)) {
|
||||||
return dflt;
|
return dflt;
|
||||||
}
|
}
|
||||||
return janet_wrap_integer(result);
|
return janet_wrap_integer(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user