Fix different signedness in comparison warning