[Issue 4948] std.algorithm.sort asserts unexpectedly with certain comparators

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 22 08:39:03 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=4948


SomeDude <lovelydear at mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear at mailmetrash.com


--- Comment #2 from SomeDude <lovelydear at mailmetrash.com> 2012-04-22 08:40:00 PDT ---
Note that replacing
    float arg(V v) { return atan2(cast(float)v.y , cast(float)v.x); }
with
    float arg(V v) { return (cast(float)v.y * cast(float)v.x); }
or
    float arg(V v) { return (cast(float)v.y / cast(float)v.x); }
is enough to make the bug disappear...

-- 
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