Skip to content

Commit

Permalink
Merges AST bugfix by Derek
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashankVM committed Dec 10, 2024
1 parent e5ee719 commit ec2d026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/idl/ast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ def execute(symtab)
var = symtab.get(lhs.text_value)
value_result = value_try do
v = rhs.value(symtab)
var.value = (lhs.value & ~0) | ((v & 1) << idx.value(symtab))
var.value = (lhs.value(symtab) & ~0) | ((v & 1) << idx.value(symtab))
end
value_else(value_result) do
var.value = nil
Expand Down

0 comments on commit ec2d026

Please sign in to comment.