[Issue 21151] div bug: long -5000 / size_t 2 = 9223372036854773308
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 13 08:12:24 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21151
--- Comment #7 from kinke <kinke at gmx.net> ---
(In reply to mw from comment #2)
> BTW, on Windows, dmd correctly output -2500.
Not on Windows, but for 32-bit targets, as an unsigned 32-bit int is converted
to a signed 64-bit long in that case, according to spec 6.8.1.4.3.
--
More information about the Digitalmars-d-bugs
mailing list