Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->
`2025-3-26`
* `FIX` add missing comparison operators `eq`, `lt`, and `le`

## 3.13.9
`2025-3-13`
Expand Down
6 changes: 6 additions & 0 deletions script/vm/operator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ vm.BINARY_OP = {
'shl',
'shr',
'concat',
'eq',
'lt',
'le',
}
vm.OTHER_OP = {
'call',
Expand All @@ -48,6 +51,9 @@ local binaryMap = {
['<<'] = 'shl',
['>>'] = 'shr',
['..'] = 'concat',
['=='] = 'eq',
['<='] = 'le',
['<'] = 'lt',
}

local otherMap = {
Expand Down
Loading