fix type warning in different arch