summaryrefslogtreecommitdiffstats
path: root/matlab/mex/mexDataManagerHelpFunctions.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-09-28 14:58:41 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-11-18 17:58:13 +0100
commit64a48bea80b909311351dc3b1345a17c693ddb69 (patch)
tree323747764903567f0de3b484bc202059637d5ac9 /matlab/mex/mexDataManagerHelpFunctions.cpp
parent51b2e49e08901fd649f8cc13b8ba1d33166e413f (diff)
downloadastra-64a48bea80b909311351dc3b1345a17c693ddb69.tar.gz
astra-64a48bea80b909311351dc3b1345a17c693ddb69.tar.bz2
astra-64a48bea80b909311351dc3b1345a17c693ddb69.tar.xz
astra-64a48bea80b909311351dc3b1345a17c693ddb69.zip
Add experimental support for Octave
Based on initial patch by @kalvdans.
Diffstat (limited to 'matlab/mex/mexDataManagerHelpFunctions.cpp')
-rw-r--r--matlab/mex/mexDataManagerHelpFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/matlab/mex/mexDataManagerHelpFunctions.cpp b/matlab/mex/mexDataManagerHelpFunctions.cpp
index 95d4640..a514565 100644
--- a/matlab/mex/mexDataManagerHelpFunctions.cpp
+++ b/matlab/mex/mexDataManagerHelpFunctions.cpp
@@ -79,7 +79,7 @@ public:
m_pLink = mxCreateSharedDataCopy(_pArray);
//fprintf(stderr, "SharedDataCopy:\narray: %p\tdata: %p\n", (void*)m_pLink, (void*)mxGetData(m_pLink));
mexMakeArrayPersistent(m_pLink);
- m_fPtr = (float *)mxGetData(m_pLink);
+ m_fPtr = (float *)mxGetData(_pArray);
m_fPtr += iOffset;
}
virtual ~CFloat32CustomMemoryMatlab3D() {