Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit b778685

Browse files
last compiler warning fixes
1 parent 809c63c commit b778685

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

cc/modules/features2d/BFMatcher.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ NAN_METHOD(BFMatcher::New) {
3030

3131
// optional args
3232
bool hasOptArgsObj = FF_HAS_ARG(0) && info[0]->IsObject();
33-
FF_OBJ optArgs = hasOptArgsObj ? info[0]->ToObject() : FF_NEW_OBJ();
33+
FF_OBJ optArgs = hasOptArgsObj ? info[0]->ToObject(Nan::GetCurrentContext()).ToLocalChecked() : FF_NEW_OBJ();
3434

3535
FF_GET_NUMBER_IFDEF(optArgs, self->normType, "normType", cv::NORM_L2);
3636
FF_GET_BOOL_IFDEF(optArgs, self->crossCheck, "crossCheck", false);

cc/modules/ximgproc/SuperpixelLSC.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ class SuperpixelLSC : public Nan::ObjectWrap {
1414
cv::Mat labels;
1515
cv::Mat labelContourMask;
1616
int regionSize = 10;
17-
float ratio = 0.075;
17+
double ratio = 0.075;
1818
int numCalculatedSuperpixels = 0;
1919

20-
static NAN_MODULE_INIT(Init);
20+
static NAN_MODULE_INIT(Init);
2121
static NAN_METHOD(New);
2222
static NAN_METHOD(Iterate);
2323

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
},
3939
"gypfile": true,
4040
"dependencies": {
41-
"macro-inferno": "^0.2.2",
41+
"macro-inferno": "^0.2.3",
4242
"nan": "^2.12.1",
43-
"native-node-utils": "0.1.4",
43+
"native-node-utils": "^0.1.5",
4444
"opencv-build": "0.0.15"
4545
},
4646
"optionalDependencies": {

0 commit comments

Comments
 (0)