https://issues.dlang.org/show_bug.cgi?id=18307
Zach the Mystic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Zach the Mystic <[email protected]> --- I tested it and this works: // change this: // value = -(cast(T)-header); // to this: value = cast(T)cast(byte)header; header is a ubyte. When changed to a byte, in this context, it becomes negative. The compiler then creates a corresponding negative int. --
