From 123adb54fe4b31b4322ce0fa699a848d4e20353d Mon Sep 17 00:00:00 2001 From: Kenn Sebesta Date: Thu, 15 Feb 2018 07:33:28 -0500 Subject: [PATCH] [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 --- src/OpenCV.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenCV.h b/src/OpenCV.h index 6ef42db3..4e74a721 100755 --- a/src/OpenCV.h +++ b/src/OpenCV.h @@ -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(); \ }