Skip to content

Commit c6fa4fd

Browse files
committed
fixed arguments checking of Mat::Normalize
1 parent ba01e38 commit c6fa4fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cc/core/Mat.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ NAN_METHOD(Mat::Normalize) {
357357
if (!hasOptArgsObj) {
358358
FF_ARG_NUMBER_IFDEF(0, alpha, 1.0);
359359
FF_ARG_NUMBER_IFDEF(1, beta, 0.0);
360-
FF_ARG_UINT_IFDEF(3, normType, normType);
361-
FF_ARG_INT_IFDEF(4, dtype, dtype);
362-
FF_ARG_INSTANCE_IFDEF(5, mask, Mat::constructor, FF_UNWRAP_MAT_AND_GET, mask);
360+
FF_ARG_UINT_IFDEF(2, normType, normType);
361+
FF_ARG_INT_IFDEF(3, dtype, dtype);
362+
FF_ARG_INSTANCE_IFDEF(4, mask, Mat::constructor, FF_UNWRAP_MAT_AND_GET, mask);
363363
}
364364

365365
FF_OBJ jsMat = FF_NEW_INSTANCE(constructor);

0 commit comments

Comments
 (0)