Skip to content

Commit

Permalink
src: fix AsyncProgressQueueWorker compilation
Browse files Browse the repository at this point in the history
We need to cast the `nullptr` to the templated type of the
`AsyncProgressQueueWorker`.
  • Loading branch information
Gabriel Schulhof committed Apr 6, 2020
1 parent 89e62a9 commit abd2bab
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 abd2bab

Please sign in to comment.