More aggressive build warnings. The cmake configuration is quite fragile. Pay particular attention to quotes around variables

This commit is contained in:
hbristow
2013-06-29 16:30:17 -07:00
parent 538dbfe585
commit 6fd296c0b0
2 changed files with 4 additions and 3 deletions

View File

@@ -282,7 +282,7 @@ public:
template <typename Scalar>
explicit MxArray(size_t m, size_t n, size_t k=1) : owns_(true) {
mwSize dims[] = {m, n, k};
mwSize dims[] = { static_cast<mwSize>(m), static_cast<mwSize>(n), static_cast<mwSize>(k) };
ptr_ = mxCreateNumericArray(3, dims, Matlab::Traits<Scalar>::ScalarType, Matlab::Traits<>::Real);
}