[Issue 12183] using std.algorithm.sort makes valgrind abort

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 16 07:58:54 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12183


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com
          Component|Phobos                      |DMD


--- Comment #1 from monarchdodra at gmail.com 2014-02-16 07:58:40 PST ---
Re-assigning as DMD issue. You can't expect library code to work around such an
issue.

BTW, I think your fix is wrong. For staters, changing default behavior is
unacceptable.

It would be much better to simply change the cast to "double": In this case,
there is absolutely nothing that warrants using "real" level precision: "depth"
is nothing more than a rough estimate to begin with. If anything, I'd think
passing around an 80 bit real to be less efficient than a standard double. Why
don't you go with that fix?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list