Skip to content

Commit e57f22a

Browse files
committed
Fixed allocSingleton
1 parent 12662e0 commit e57f22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/opencv2/core/private.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ CV_EXPORTS void scalarToRawData(const cv::Scalar& s, void* buf, int type, int un
162162

163163
//! Allocate all memory buffers which will not be freed, ease filtering memcheck issues
164164
template <typename T>
165-
CV_EXPORTS T* allocSingleton(size_t count) { return fastMalloc(sizeof(T) * count); }
165+
CV_EXPORTS T* allocSingleton(size_t count) { return static_cast<T*>(fastMalloc(sizeof(T) * count)); }
166166
}
167167

168168
// property implementation macros

0 commit comments

Comments
 (0)