Potential bug in cv::mean() for CV_32S?

good effort !
are you able to debug it, to see, which code path / optimization is taken inside cv::mean ?

and, btw, same problem with cv::meanStdDev() ?