diff --git a/compiler/ncgset.pas b/compiler/ncgset.pas index cc7ef364a3..6397403e9c 100644 --- a/compiler/ncgset.pas +++ b/compiler/ncgset.pas @@ -827,7 +827,7 @@ implementation {$endif} {$endif cpuhighleveltarget} begin - hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opsize, OC_EQ, tcgint(t^._low),hregister, blocklabel(t^.blockid)); + hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opsize, OC_EQ, tcgint(t^._low.svalue),hregister, blocklabel(t^.blockid)); end; { Reset last here, because we've only checked for one value and need to compare for the next range both the lower and upper bound } @@ -934,7 +934,7 @@ implementation {$endif} {$endif cpuhighleveltarget} begin - hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opsize, jmp_lt, tcgint(t^._low), hregister, + hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opsize, jmp_lt, tcgint(t^._low.svalue), hregister, elselabel); end; end;