bearophile Wrote: > Look better at the code, Oh, now I see. Then this is not correct translation to D. C++ returns correct results. I've fixed bug, but not the one that you see. You can verify this by running C++ version.