Druntime's checkint.d should be modify: uint subu(uint x, uint y, ref bool overflow) { if (x < y) return y - x; else return x - y; } uint subu(ulong x, ulong y, ref bool overflow) { if (x < y) return y - x; else return x - y; } Frank