fixed a sign comparison warning