Hi everyone,I have just found out that constant calculations like thismov esi, offset A - offset Bfail with the following error messagef:\ndn\source\extsrc\winoldap.dll\WINOLDIF.PAS(860): Error 31: Constant expectedThe error caret (^) points to "B".Can someone verify this?It puzzles me that the internal assembler of VP cannot handle this and I wonderwhy I have never stumbled across this before.All the best,Stefan / AHSee More
"I could retest this with COMP logic. Maybe that changes, since comp is FPU, and int64 not, it would stress difference part of VAL maybe. I'll pester some Delphi forums with the difference tomorrow, see if they come up with something, and will…"
now you are forcing me to look at my fix again. :P
Ok, first of all your comparisons all fail because RSa is different from RSb :P
Obviously the result of Str() in VP on numbers without digits after the decimal point
is different from…"
I have no objections at all and hope that someone may find it useful.
All I can say is that most of the code in mathx is actually used in NDNs calculator,
so bugs should be rare.
Please read my reply to Marco for some mroe information on…"
"Is it a bug?
I made the following mods trunc64->trunc and commenting the uses line. I also printed RSA and r.
Comparing values before and after Trunc64()
rsa:-1.00000000000000E+0000 r: 0
-1 -> -1…"
Thanks for that - that is a tricky corner case! I have tested and included the fix in system.pas.
I also looked at your mathx unit, and I think it makes sense to include much of that code in VP's int64 unit. Do you have any…"