On 27/04/2022 10:05 AM, Guillaume Piolat wrote:
On Tuesday, 26 April 2022 at 21:59:39 UTC, rikki cattermole wrote:

Putting an int into a ubyte absolutely should error, that is a lossy conversion and should not be automatic.

It's just VRP, here it works in 2.094
https://d.godbolt.org/z/vjq7xsMdn

because the compiler wasn't complaining I wouldn't know it was reliant on VRP (which is certainly an issue to be fixed).

Okay further testing locally, I cannot reproduce.

Of course I still don't think that code is right and should have the casts.

Either way whatever the dmd is, it must not be as recent as thought to be.

Reply via email to