[fpc-pascal] X64 only - Can't determine which overloaded function to call
james at productionautomation.net
Thu Jun 15 20:29:20 CEST 2017
>have you tried 30.0 as well? it looks like something needs a real number for this on the 64bit side...
I have just now tried 30.0 and it compiles and runs fine with x64.
I have also put the 30 back and changed the BYA and SYA variables to integers and it also works fine on x64.
I just stuck the 30 in there to demonstrate the problem, my original program has a function call where the 30 is that returns an integer.
I realize that there is no possible reason to want to round this with the variables supplied, the round was left over because I used to have a divide in the formula but ended up removing it but never removed the round() Still, I think this should compile successfully (useless as it is) anyway because there is technically nothing wrong with it.
I can do Round(30), and Round(BYA) (BYA is a byte variable) successfully in both Win32 and Win64, so I don't know why this particular combination is a problem.
I just now also tried
LY:=Round(-(BYA+SYA)+30); //works both Win32 and Win64
Which is exactly the same thing as
LY:=Round(30-(BYA+SYA)); //Does not work Win64
From: fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of wkitty42 at windstream.net
Sent: Thursday, June 15, 2017 2:03 PM
To: fpc-pascal at lists.freepascal.org
Subject: Re: [fpc-pascal] X64 only - Can't determine which overloaded function to call
On 06/15/2017 08:20 AM, James Richters wrote:
> Also compiles fine with both Win32 and Win64
have you tried 30.0 as well? it looks like something needs a real number for this on the 64bit side...
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list unless*
*a signed and pre-paid contract is in effect with us.* _______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal