fix signed/unsigned warning