https://issues.dlang.org/show_bug.cgi?id=23076
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Walter Bright <[email protected]> --- Reduced it to: struct S { int depthLow = 0; int depthHigh = 30000; void fun(int* pixels) { float b = depthLow; int depthA = cast(int)(b); int depthB = cast(short)(cast(float)depthHigh * cast(float)depthLow); pixels[depthA] = depthB; } } compile with -O --
