Explorar o código

Avoid wrong overflow error when using -Criot options

git-svn-id: trunk@45815 -
pierre %!s(int64=5) %!d(string=hai) anos
pai
achega
667a010357
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/ogrel.pas

+ 2 - 0
compiler/ogrel.pas

@@ -358,9 +358,11 @@ implementation
             else if (p.objsection=CurrObjSec) and
                     (p.bind<>AB_COMMON) and
                     (Reloctype=RELOC_RELATIVE) then
+{$push} {$R-}{$Q-}
               begin
                 data:=data+symaddr-len-CurrObjSec.Size;
               end
+{$pop}
             else
               begin
                 objreloc:=TRelRelocation.CreateSection(CurrObjSec.Size,p.objsection,Reloctype);