From 63f8f018c153d0cfca79498897a9ecc7720f4427 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Mon, 6 Apr 2020 09:01:37 -0700 Subject: [PATCH] src: fix AsyncProgressQueueWorker compilation We need to cast the `nullptr` to the templated type of the `AsyncProgressQueueWorker`. Fixes: https://github.com/nodejs/node-addon-api/issues/695 PR-URL: https://github.com/nodejs/node-addon-api/pull/696 Signed-off-by: Gabriel Schulhof --- napi-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi-inl.h b/napi-inl.h index 82846c257..f8657ae3f 100644 --- a/napi-inl.h +++ b/napi-inl.h @@ -4792,7 +4792,7 @@ inline void AsyncProgressWorker::SendProgress_(const T* data, size_t count) { template inline void AsyncProgressWorker::Signal() const { - this->NonBlockingCall(nullptr); + this->NonBlockingCall(static_cast(nullptr)); } template