Compiler: fix overflow on 32bit host