Skip to content

Commit

Permalink
src: fix compile failure in test
Browse files Browse the repository at this point in the history
Since original submit for
nodejs/node-addon-api#292 warnings
were tightened through nodejs/node-addon-api#315
causing the bigint test to fail to compile

Fix the compile failure

PR-URL: nodejs/node-addon-api#345
Reviewed-By: : None, landed to unbreak CI
  • Loading branch information
John French committed Sep 18, 2018
1 parent 9e267bf commit 156055b
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 @@ -581,7 +581,7 @@ inline size_t BigInt::WordCount() const {
inline void BigInt::ToWords(int* sign_bit, size_t* word_count, uint64_t* words) {
napi_status status = napi_get_value_bigint_words(
_env, _value, sign_bit, word_count, words);
NAPI_THROW_IF_FAILED(_env, status);
NAPI_THROW_IF_FAILED_VOID(_env, status);
}
#endif // NAPI_EXPERIMENTAL

Expand Down

0 comments on commit 156055b

Please sign in to comment.