We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f62e4a + 9a2b3c3 commit 33976a9Copy full SHA for 33976a9
src/Matrix.cc
@@ -317,7 +317,7 @@ NAN_METHOD(Matrix::GetData) {
317
Nan::HandleScope scope;
318
319
Matrix *self = Nan::ObjectWrap::Unwrap<Matrix>(info.This());
320
- int size = self->mat.rows * self->mat.cols * self->mat.elemSize1();
+ int size = self->mat.rows * self->mat.cols * self->mat.elemSize();
321
Local<Object> buf = Nan::NewBuffer(size).ToLocalChecked();
322
uchar* data = (uchar*) Buffer::Data(buf);
323
// if there is padding after each row, clone first to get rid of it
0 commit comments