<div dir="ltr"><div class="gmail_default" style="font-size:large">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)).</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Thanks for the help!<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 30, 2018 at 1:09 PM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Ozz Nixon <<a href="mailto:ozznixon@gmail.com" target="_blank">ozznixon@gmail.com</a>> schrieb am So., 30. Sep. 2018, 17:18:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">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:</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Halcyon6SQL.pas(1407,41) Error: Can't determine which overloaded function to call<br>Halcyon6SQL.pas(1752,34) Error: Can't determine which overloaded function to call<br>Halcyon6SQL.pas(2413) Fatal: There were 2 errors compiling module, stopping<br>Fatal: Compilation aborted</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Code is basically doing:<br></div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large"> Int64 := trunc(variant);</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">had to change to type cast:</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large"> Int64 := trunc(Extended(variant));</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">the there error I am getting, code is basically doing:</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large"> comp := double*10000;</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Halcyon6DBF.pas(2123,33) Error: Incompatible types: got "Double" expected "Int64"</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">This last one, I am not sure what the compiler is expecting, and why only on the Windows platform?</div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div>