remobjects / pascalscript

pascalscript
Other
447 stars 178 forks source link

uPSRuntime.pas(14346): E2099 Overflow in conversion or arithmetic operation #236

Closed luizluvizutto closed 4 years ago

luizluvizutto commented 4 years ago

Hello friends!

After pulling the update, it started to display the following error:

[dcc64 Error] uPSRuntime.pas(14346): E2099 Overflow in conversion or arithmetic operation [dcc64 Fatal Error] uPSComponent.pas(1557): F2063 Could not compile used unit 'uPSRuntime.pas' Failed

additional information: Delphi Community 10.3.3 and repository: https://github.com/pult/pascalscript

Code snippet where the compiler stops

      end else begin
        {$IFNDEF PS_NOINT64}
        if res^.FType.BaseType <> btS64 then
        {$ENDIF}
        begin
          //CopyArrayContents(Pointer(Longint(Stack)-PointerSize2), @PPSVariantData(res)^.Data, 1, Res^.FType);
          {+}
          //CopyArrayContents(Pointer(Longint(Stack)-Longint(PointerSize2)), @PPSVariantData(res)^.Data, 1, Res^.FType);
          CopyArrayContents(PointerShift(Stack,-PointerSize2), @PPSVariantData(res)^.Data, 1, Res^.FType);
          {+.}
        end;
      end;
pult commented 4 years ago

fixed

luizluvizutto commented 4 years ago

It worked! Thank you