So, should I re-code everything to Double where possible? And Comp at Int64 no problem, that is how my Turbo Pascal build works (except I am using Int64 = Record (DWord, DWord)).
Thanks for the help! On Sun, Sep 30, 2018 at 1:09 PM Sven Barth via fpc-devel < [email protected]> wrote: > Ozz Nixon <[email protected]> schrieb am So., 30. Sep. 2018, 17:18: > >> A few years ago I acquired IP rights to Halcyon (xBase for Delphi/FPC). >> For years, I have not had an issue, today, I am recompiling the suite (zero >> code changes) - 3.0.4 Linux - no problems, 3.0.4 Mac - no problems. >> However, 3.0.4 Windows - I am getting: >> >> Halcyon6SQL.pas(1407,41) Error: Can't determine which overloaded function >> to call >> Halcyon6SQL.pas(1752,34) Error: Can't determine which overloaded function >> to call >> Halcyon6SQL.pas(2413) Fatal: There were 2 errors compiling module, >> stopping >> Fatal: Compilation aborted >> >> Code is basically doing: >> >> Int64 := trunc(variant); >> >> had to change to type cast: >> >> Int64 := trunc(Extended(variant)); >> >> the there error I am getting, code is basically doing: >> >> comp := double*10000; >> >> Halcyon6DBF.pas(2123,33) Error: Incompatible types: got "Double" expected >> "Int64" >> >> This last one, I am not sure what the compiler is expecting, and why only >> on the Windows platform? >> > > That's because on Win64 the Extended type is not available. There Extended > is an alias to Double (explaining the first error) and Comp is an alias to > Int64. > > Regards, > Sven > >> _______________________________________________ > fpc-devel maillist - [email protected] > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel >
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
