[Issue 23846] std.math can't compile under macos rosetta

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 26 11:44:08 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23846

--- Comment #10 from mhh <maxhaton at gmail.com> ---
Yes it does.

Huge val (i.e. infinity) is returned on overflow when the number is too large
but not when it underflows which is the case here.

The result of an underflow is nonetheless still a valid finite float, but with
less precision in the mantissa. So it needs to check the result too if ERANGE
is returned.

Microsoft don't define underflow in their docs so it's possible their behaviour
is different.

--


More information about the Digitalmars-d-bugs mailing list