Skip to content

Commit

Permalink
offset must be sign extended
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Feb 2, 2011
1 parent 0934f54 commit c5b8f9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/cod1.c
Expand Up @@ -1184,6 +1184,7 @@ code *getlvalue(code *pcs,elem *e,regm_t keepmsk)
* EA = [ES:]c[idxreg]
*/
if (e1isadd && e12->Eoper == OPconst &&
(!I64 || el_signx32(e12)) &&
(tysize(e12->Ety) == REGSIZE || (I64 && tysize(e12->Ety) == 4)) &&
(!e1->Ecount || !e1free)
)
Expand Down

0 comments on commit c5b8f9d

Please sign in to comment.