|
@@ -249,8 +249,8 @@ implementation
|
|
|
if (cs_check_overflow in current_settings.localswitches) then
|
|
|
begin
|
|
|
current_asmdata.getjumplabel(hl);
|
|
|
- hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList,opsize,OC_NE,low(aint),location.register,hl);
|
|
|
- cg.a_call_name(current_asmdata.CurrAsmList,'FPC_OVERFLOW',false);
|
|
|
+ hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList,opsize,OC_NE,torddef(opsize).low.svalue,location.register,hl);
|
|
|
+ hlcg.g_call_system_proc(current_asmdata.CurrAsmList,'fpc_overflow',nil);
|
|
|
hlcg.a_label(current_asmdata.CurrAsmList,hl);
|
|
|
end;
|
|
|
end;
|