fix type signed/unsigned warning