fix integer wrap (BCReg is unsigned)