fix integer overflow warning in i2o_block