BUG: Bug in sum/mean on 32-bit platforms on overflows with non-max dtypes (GH6915)
Merge pull request #6954 from jreback/overflow

BUG: Bug in sum/mean on 32-bit platforms on overflows (GH6915)
BLD: run in numpy deprecation mode if indicated