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
austinli64 committed Sep 18, 2018
1 parent e803d68 commit da379a8
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 da379a8

Please sign in to comment.