Merge pull request #613 from kubark42/patch-1

[OpenCV.h]: allow double arguments
This commit is contained in:
Peter Braden 2019-03-20 17:12:10 +01:00 committed by GitHub
commit 73007ee3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ using namespace node;
}
#define DOUBLE_FROM_ARGS(NAME, IND) \
if (info[IND]->IsInt32()){ \
if (info[IND]->IsNumber()){ \
NAME = info[IND]->NumberValue(); \
}