JuliaLang/julia — pull request #8893 by ivarne (2014-11-03 20:22:35+00:00)
Title: Better fix for #8871

Mapreduce didn't work with `Range{BigInt}`, because the length wasn't a
`Int`, because of potential overflow. This patch just converts the
length to Int with a checked conversion, because a mapreduce on larger
arrays will probably never finish anyway.

Also fix some broken test of prod