Fix integer comparison warning