From d68ec8a60fef408c7e115b9de0b7af2d40b72e32 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sun, 29 Mar 2020 20:56:26 +0300 Subject: [PATCH] Fix CI --- .travis.yml | 6 ------ include/addon-tools.hpp | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0c0b1e7..493d795 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,9 +18,3 @@ matrix: install: - cd test - npm ci - - cd .. - -script: - - cd test - - npm test - - ./build/Release/test diff --git a/include/addon-tools.hpp b/include/addon-tools.hpp index b776c46..7850b9b 100644 --- a/include/addon-tools.hpp +++ b/include/addon-tools.hpp @@ -19,7 +19,7 @@ #define JS_NULL env.Null() #define JS_STR(VAL) Napi::String::New(env, VAL) #define JS_NUM(VAL) Napi::Number::New(env, static_cast(VAL)) -#define JS_EXT(VAL) Napi::External::New(env, reinterpret_cast(VAL)) +#define JS_EXT(VAL) Napi::External::New(env, (void*)(VAL)) #define JS_BOOL(VAL) Napi::Boolean::New(env, static_cast(VAL)) #define JS_OBJECT Napi::Object::New(env) #define JS_ARRAY Napi::Array::New(env)