Skip to content

Commit

Permalink
src: fix AsyncProgressQueueWorker compilation (#696)
Browse files Browse the repository at this point in the history
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.

Fixes: #695
PR-URL: #696
Signed-off-by: Gabriel Schulhof <[email protected]>
  • Loading branch information
Gabriel Schulhof authored Apr 7, 2020
1 parent 2c3d5df commit e1a827a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4792,7 +4792,7 @@ inline void AsyncProgressWorker<T>::SendProgress_(const T* data, size_t count) {

template<class T>
inline void AsyncProgressWorker<T>::Signal() const {
this->NonBlockingCall(nullptr);
this->NonBlockingCall(static_cast<T*>(nullptr));
}

template<class T>
Expand Down

0 comments on commit e1a827a

Please sign in to comment.