Skip to content

Commit ec2d026

Browse files
committed
Merges AST bugfix by Derek
1 parent e5ee719 commit ec2d026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/idl/ast.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ def execute(symtab)
18031803
var = symtab.get(lhs.text_value)
18041804
value_result = value_try do
18051805
v = rhs.value(symtab)
1806-
var.value = (lhs.value & ~0) | ((v & 1) << idx.value(symtab))
1806+
var.value = (lhs.value(symtab) & ~0) | ((v & 1) << idx.value(symtab))
18071807
end
18081808
value_else(value_result) do
18091809
var.value = nil

0 commit comments

Comments
 (0)