BUG: LBYL casting to int32 to ensure that integer overflows are caught.
Merge pull request #2469 from scipy/fix-int32-overflow

BUG: interpolate: LBYL casting to int32 to ensure that integer overflows are caught.