numpy/numpy — pull request #4366 by jaimefrio (2014-02-26 01:51:55+00:00)
Title: BUG: Allow any integer type in bincount (fixes #823)

Gives array-likes that cannot be cast to np.intp a second chance, by
comparing its entries one by one to NPY_INTP_MAX and forcing the cast if
none exceeds it. Fixes #823.