* fix .seh_savereg: the offset is checked with a bitmask, not a divisor, so use "and", not "mod"

git-svn-id: trunk@39877 -
This commit is contained in:
svenbarth 2018-10-07 12:25:09 +00:00
parent 40598944f8
commit 2f74a51eb8

View File

@ -185,7 +185,7 @@ Unit rax64att;
Consume(AS_COMMA);
hnum:=BuildConstExpression(false,false);
if (hnum<0) or (hnum>maxoffset[actsehdirective=ash_setframe]) or
((hnum mod modulo[actsehdirective=ash_setframe])<>0) then
((hnum and modulo[actsehdirective=ash_setframe])<>0) then
Message1(asmr_e_bad_seh_directive_offset,sehdirectivestr[actsehdirective])
else
curlist.concat(cai_seh_directive.create_reg_offset(actsehdirective,hreg,hnum));