libupm: support node.js v12

Maintainer: @blogic me
Compile tested: head r14241-ba2ddba, x86_64
Run tested: x86_64 (VirtualBox)

Description:
Addressed the build failure with node.js version 12.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
This commit is contained in:
Hirokazu MORIKAWA
2020-08-25 17:41:41 +09:00
parent 786253f214
commit 8844f433e2
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
--- a/src/carrays_uint32_t.i
+++ b/src/carrays_uint32_t.i
@@ -24,7 +24,7 @@
%typemap(in) uint32_t {
int ecode2 = 0 ;
if (($input)->IsInt32())
- $1 = ($input)->Uint32Value();
+ $1 = ($input)->Uint32Value(SWIGV8_CURRENT_CONTEXT()).FromJust();
else
SWIG_exception_fail(SWIG_ArgError(ecode2), "failed to convert uint32");
}