mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-25 05:11:33 +00:00
Fixed bug with address miscalculation in ternary operator when compiling with -h or #nocompact flags
This commit is contained in:
parent
8cb3ad63fe
commit
fc4d47b612
1 changed files with 1 additions and 1 deletions
2
parse.c
2
parse.c
|
@ -3618,8 +3618,8 @@ static void ExprTernary(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
PC_WriteInt(pc_Address + 5, jumpAddrPtr); // opcode + int = 5 bytes
|
||||
PC_AppendCmd(PCD_GOTO);
|
||||
PC_WriteInt(pc_Address + 4, jumpAddrPtr); // int = 4 bytes
|
||||
jumpAddrPtr = pc_Address;
|
||||
PC_SkipInt();
|
||||
|
||||
|
|
Loading…
Reference in a new issue