From e1a827ae295d4e426ab6c77272c3f3e87e31817c Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Tue, 7 Apr 2020 14:53:33 -0700 Subject: [PATCH] src: fix AsyncProgressQueueWorker compilation (#696) 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