Skip to content

Commit b119962

Browse files
committed
Add missing comparison operators
1 parent dc4c9f2 commit b119962

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/vm/operator.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ vm.BINARY_OP = {
2323
'shl',
2424
'shr',
2525
'concat',
26+
'eq',
27+
'lt',
28+
'le',
2629
}
2730
vm.OTHER_OP = {
2831
'call',
@@ -48,6 +51,9 @@ local binaryMap = {
4851
['<<'] = 'shl',
4952
['>>'] = 'shr',
5053
['..'] = 'concat',
54+
['=='] = 'eq',
55+
['<='] = 'le',
56+
['<'] = 'lt',
5157
}
5258

5359
local otherMap = {

0 commit comments

Comments
 (0)