fix: use 64bit compatible integer check in aql compiler
This commit is contained in:
parent
423f355766
commit
75da379079
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ function compileLiteral(value) {
|
|||
} else if (typeof value === 'boolean') {
|
||||
return typed(value ? 1 : 0, 'boolean', { literal: true });
|
||||
} else if (typeof value === 'number') {
|
||||
return typed(value, (value | 0) === value ? 'integer' : 'float', {
|
||||
return typed(value, Number.isInteger(value) ? 'integer' : 'float', {
|
||||
literal: true
|
||||
});
|
||||
} else if (Array.isArray(value)) {
|
||||
|
|
Loading…
Reference in a new issue