From e57f22a3860b25f58b18ff4af7ca89e0459f0b7f Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Tue, 21 Nov 2017 18:07:30 +0300 Subject: [PATCH] Fixed allocSingleton --- modules/core/include/opencv2/core/private.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/private.hpp b/modules/core/include/opencv2/core/private.hpp index 232214a..a849040 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 -- 2.7.4