fixed index comparison int vs unsigned int