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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 13 19:17:01 UTC 2020


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

--- Comment #11 from kinke <kinke at gmx.net> ---
FWIW, in C# this is an error:

long a = -5000;
ulong b = 2;
long c = a / b; // Operator '/' is ambiguous on operands of type 'long' and
'ulong'

--


More information about the Digitalmars-d-bugs mailing list