4xm: fix signed overflow