A strange div bug on Linux x86_64, (both dmd & ldc2): long -5000 / size_t 2 = 9223372036854773308
mw
mingwu at gmail.com
Fri Aug 14 02:27:36 UTC 2020
On Friday, 14 August 2020 at 02:10:20 UTC, mw wrote:
The only other extra tedious thing need to do is: manually add
checked() on literals in the array:
```
Long b = 1L; // OK
//Long[] a = [-5000L, 0L]; // Error: cannot implicitly convert
expression [-5000L, 0L] of type long[] to Checked!(long, Abort)[]
Long[] a = [checked(-5000L), checked(0L)]; // here for each
literals
```
More information about the Digitalmars-d
mailing list