isnan: shorter & faster
This commit is contained in:
parent
dcb7d9427e
commit
35d506bce1
1 changed files with 2 additions and 2 deletions
|
@ -331,8 +331,8 @@ var warn = func(msg, level = 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var isnan = func(v) {
|
var isnan = func {
|
||||||
call(func math.sin(v), nil, var err = []);
|
call(math.sin, arg, var err = []);
|
||||||
return !!size(err);
|
return !!size(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue