[Issue 21151] div bug: long -5000 / size_t 2 = 9223372036854773308

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 13 07:32:04 UTC 2020


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

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kinke at gmx.net
         Resolution|---                         |INVALID

--- Comment #1 from kinke <kinke at gmx.net> ---
This is a usual arithmetic conversion, see
https://dlang.org/spec/type.html#usual-arithmetic-conversions. C++ does the
same, see https://cpp.godbolt.org/z/YGnr44.

--


More information about the Digitalmars-d-bugs mailing list