From 06617392e0ea101c665eb11f2e0604a6d0430713 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 2 Jul 2015 17:44:32 +0300 Subject: [PATCH] workaround issue with MatExpr --- modules/core/src/matop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/matop.cpp b/modules/core/src/matop.cpp index b512485d16..30933e08a9 100644 --- a/modules/core/src/matop.cpp +++ b/modules/core/src/matop.cpp @@ -1583,12 +1583,12 @@ void MatOp_Initializer::multiply(const MatExpr& e, double s, MatExpr& res) const inline void MatOp_Initializer::makeExpr(MatExpr& res, int method, Size sz, int type, double alpha) { - res = MatExpr(getGlobalMatOpInitializer(), method, Mat(sz, type, (void*)0), Mat(), Mat(), alpha, 0); + res = MatExpr(getGlobalMatOpInitializer(), method, Mat(sz, type, (void*)0xEEEEEEEE), Mat(), Mat(), alpha, 0); } inline void MatOp_Initializer::makeExpr(MatExpr& res, int method, int ndims, const int* sizes, int type, double alpha) { - res = MatExpr(getGlobalMatOpInitializer(), method, Mat(ndims, sizes, type, (void*)0), Mat(), Mat(), alpha, 0); + res = MatExpr(getGlobalMatOpInitializer(), method, Mat(ndims, sizes, type, (void*)0xEEEEEEEE), Mat(), Mat(), alpha, 0); } ///////////////////////////////////////////////////////////////////////////////////////////////////////////