diff --git a/modules/core/include/opencv2/core/private.hpp b/modules/core/include/opencv2/core/private.hpp index 232214adef7f8941d3c44ee45bd22d74c7b94008..a849040f94380c8b155b5f64d01e3ebb0eb8efbc 100644 --- a/modules/core/include/opencv2/core/private.hpp +++ b/modules/core/include/opencv2/core/private.hpp @@ -162,7 +162,7 @@ CV_EXPORTS void scalarToRawData(const cv::Scalar& s, void* buf, int type, int un //! Allocate all memory buffers which will not be freed, ease filtering memcheck issues template -CV_EXPORTS T* allocSingleton(size_t count) { return fastMalloc(sizeof(T) * count); } +CV_EXPORTS T* allocSingleton(size_t count) { return static_cast(fastMalloc(sizeof(T) * count)); } } // property implementation macros