fixed integer comparison warning