[Issue 7973] BigInt %= long/ulong gives wrong value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 23 06:03:32 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7973
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-04-23 06:04:31 PDT ---
(In reply to comment #0)
> Since BigInt %= BigInt seems to work correctly, how about making it construct a
> BigInt from the long/ulong and using that? It can later be replaced with an
> implementation optimised to long/ulong once that has been written and tested.
It's a template problem, (related to implicit conversion) not a mathematical
problem. At the time I wrote the code, I could not find any way to select the
correct function in all cases, if I allowed long and ulong.
At least one of the bugs I was hitting was fixed during the last three
releases, so it is probably possible to implement it now.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list