We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5c2fd commit 7f32070Copy full SHA for 7f32070
src/luasm.lua
@@ -384,7 +384,7 @@ function interpreter:label_exists(label)
384
end
385
386
function interpreter:in_bounds(index)
387
- return ~(index < 0 or index > self.data.parsed_lines)
+ return not (index < 0 or index > self.data.parsed_lines)
388
389
390
function interpreter:jump(index)
@@ -400,7 +400,7 @@ function interpreter:jump(index)
400
error("The index must be a number or a string", 2)
401
402
403
- if ~self:in_bounds(index) then
+ if not self:in_bounds(index) then
404
error("This position does not exist.")
405
406
0 commit comments