[DDMD] Explicitly cast to unsigned

Because this isn't valid on 64-bit with D.