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

what version of OpenCV?
who compiled OpenCV?
what OS?
what platform/architecture?
what compiler?

taking your code, I can’t reproduce this. I get the expected result.