numpy/numpy — pull request #4708 by jaimefrio (2014-05-14 01:44:39+00:00)
Title: BUG: searchsorted fails if sorter is not of type np.intp fixes #4698

The array being passed to the search function was not the one converted
to NPY_INTP, so it only worked if it was of that type to begin with.