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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 25 12:44:29 UTC 2023


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

--- Comment #4 from kinke <kinke at gmx.net> ---
(In reply to Caleb Xu from comment #3)
> I tried this simple C program (based on strto{d,f}
> invocations from [1], [2]) on a machine with the new Xcode and it outputs
> four "true"s as expected. So far this seems to work, at least as far as not
> throwing an error when parsing the strings into float/double:

What matters is whether strtof/d sets `errno` to ERANGE (e.g.,
https://github.com/dlang/dmd/blob/34c57751f8f50f623740387599f02c4ace34ee6a/compiler/src/dmd/root/port.d#L94).

--


More information about the Digitalmars-d-bugs mailing list