mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
[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:
parent
48a4fc35e8
commit
123adb54fe
@ -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(); \
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user