A strange div bug on Linux x86_64, (both dmd & ldc2): long -5000 / size_t 2 = 9223372036854773308
Ali Çehreli
acehreli at yahoo.com
Thu Aug 13 18:37:29 UTC 2020
On 8/13/20 6:33 AM, bachmeier wrote:
> The source of wrong behavior is vec.length having type ulong.
I remember watching C++ experts on an "ask us anything" kind of session
at a conference. They were agreeing that it was a mistake that
std::vector::size returns unsigned. (Herb Sutter: "We were wrong.")
Ali
More information about the Digitalmars-d
mailing list