Was triggering undefined behaviour.  Stop that.