Use signed int for indices in field map bounds check to avoid FPE
Use signed int for indices in field map bounds check to avoid negative float to unsigned int cast FPE.
Use signed int for indices in field map bounds check to avoid negative float to unsigned int cast FPE.