Skip to content
Snippets Groups Projects
Commit e60e397a authored by Eric Wait's avatar Eric Wait
Browse files

Mex Image pointer creation had a bug in shorts

parent 9a8fe9a3
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ void MexCommand::init()
{
*argOut = mxCreateNumericArray(numDims,DIMS,mxUINT16_CLASS,mxREAL);
*imageOut = (unsigned short*)mxGetData(*argOut);
memset(*imageOut,0,sizeof(unsigned int)*dims->product());
memset(*imageOut,0,sizeof(unsigned short)*dims->product());
}
}
......@@ -149,7 +149,7 @@ void MexCommand::init()
{
*argOut = mxCreateNumericArray(numDims,DIMS,mxINT16_CLASS,mxREAL);
*imageOut = (short*)mxGetData(*argOut);
memset(*imageOut,0,sizeof(int)*dims->product());
memset(*imageOut,0,sizeof(short)*dims->product());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment