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)