From ef2c1e1a243edefe687765a83b4478f550cf7abc Mon Sep 17 00:00:00 2001 From: hbristow Date: Mon, 12 Aug 2013 11:38:59 +1000 Subject: [PATCH] Changed bad cast in MxArray --- modules/matlab/include/mxarray.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/matlab/include/mxarray.hpp b/modules/matlab/include/mxarray.hpp index 681449a0e..a2c10199a 100644 --- a/modules/matlab/include/mxarray.hpp +++ b/modules/matlab/include/mxarray.hpp @@ -406,13 +406,12 @@ public: const Scalar* imag() const { return static_cast(mxGetData(ptr_)); } template - Scalar scalar() const { return static_cast(mxGetData(ptr_))[0]; } + Scalar scalar() const { return static_cast(mxGetData(ptr_))[0]; } std::string toString() const { conditionalError(isString(), "Attempted to convert non-string type to string"); std::string str(size()+1, '\0'); mxGetString(ptr_, const_cast(str.data()), str.size()); - mexPrintf("string: %s\n", str.c_str()); return str; }