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) {
|
||||
call(func math.sin(v), nil, var err = []);
|
||||
var isnan = func {
|
||||
call(math.sin, arg, var err = []);
|
||||
return !!size(err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue