Commit 46f05f2d authored by Alexander Alekhin's avatar Alexander Alekhin

python: disable assertion in NumpyAllocator

parent 15a65860
...@@ -149,7 +149,7 @@ public: ...@@ -149,7 +149,7 @@ public:
{ {
if( data != 0 ) if( data != 0 )
{ {
CV_Error(Error::StsAssert, "The data should normally be NULL!"); // issue #6969: CV_Error(Error::StsAssert, "The data should normally be NULL!");
// probably this is safe to do in such extreme case // probably this is safe to do in such extreme case
return stdAllocator->allocate(dims0, sizes, type, data, step, flags, usageFlags); return stdAllocator->allocate(dims0, sizes, type, data, step, flags, usageFlags);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment