Bug 18245 – Segfault on std.math.nearbyint

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2018-01-16T21:59:06Z
Last change time
2020-09-12T05:20:53Z
Assigned to
No Owner
Creator
Răzvan Ștefănescu

Comments

Comment #0 by rumbu — 2018-01-16T21:59:06Z
If there is no alternative, make function unavailable on Windows 64 bit instead of using a 0 assertion. real nearbyint(real x) @trusted nothrow @nogc { version (CRuntime_Microsoft) { assert(0); // not implemented in C library } else return core.stdc.math.nearbyintl(x); }
Comment #1 by n8sh.secondary — 2020-09-12T05:20:53Z