Skip to content

Commit

Permalink
Merge pull request #349 from tommyZZM/fix-cc-core-mat-normalize
Browse files Browse the repository at this point in the history
fixed arguments checking of `Mat::Normalize`
  • Loading branch information
justadudewhohacks authored Jul 3, 2018
2 parents ba01e38 + c6fa4fd commit dcaf4c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cc/core/Mat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ NAN_METHOD(Mat::Normalize) {
if (!hasOptArgsObj) {
FF_ARG_NUMBER_IFDEF(0, alpha, 1.0);
FF_ARG_NUMBER_IFDEF(1, beta, 0.0);
FF_ARG_UINT_IFDEF(3, normType, normType);
FF_ARG_INT_IFDEF(4, dtype, dtype);
FF_ARG_INSTANCE_IFDEF(5, mask, Mat::constructor, FF_UNWRAP_MAT_AND_GET, mask);
FF_ARG_UINT_IFDEF(2, normType, normType);
FF_ARG_INT_IFDEF(3, dtype, dtype);
FF_ARG_INSTANCE_IFDEF(4, mask, Mat::constructor, FF_UNWRAP_MAT_AND_GET, mask);
}

FF_OBJ jsMat = FF_NEW_INSTANCE(constructor);
Expand Down

0 comments on commit dcaf4c5

Please sign in to comment.