[OpenCV.h]: allow double arguments

Previously, if the input arguments were floating point, then this function 
would not assign them to the named value.

Fixes #598
This commit is contained in:
Kenn Sebesta 2018-02-15 07:33:28 -05:00 committed by GitHub
parent 48a4fc35e8
commit 123adb54fe
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(); \
}