mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Fixed allocSingleton
This commit is contained in:
parent
12662e064b
commit
e57f22a386
@ -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 <typename T>
|
||||
CV_EXPORTS T* allocSingleton(size_t count) { return fastMalloc(sizeof(T) * count); }
|
||||
CV_EXPORTS T* allocSingleton(size_t count) { return static_cast<T*>(fastMalloc(sizeof(T) * count)); }
|
||||
}
|
||||
|
||||
// property implementation macros
|
||||
|
Loading…
Reference in New Issue
Block a user