mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-08-10 22:24:59 +00:00
When a bit-field is used within an lvalue expression but isn't what's being assigned to, don't erroneously assign to the bit-field instead.
This fixes the compca04.c test case.
This commit is contained in:
@@ -2256,6 +2256,7 @@ var
|
||||
|
||||
{load the address of the item pointed to by the pointer}
|
||||
GenerateCode(tree^.left);
|
||||
isBitField := false;
|
||||
end {else if}
|
||||
else if tree^.token.kind = dotch then begin
|
||||
|
||||
|
Reference in New Issue
Block a user