Skip to content

Commit

Permalink
test: fix build warnings in bigint N-API test
Browse files Browse the repository at this point in the history
PR-URL: #21796
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Kyle Farnung <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
addaleax committed Jul 16, 2018
1 parent 9a34c5b commit 210fea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/addons-napi/test_bigint/test_bigint.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
static napi_value IsLossless(napi_env env, napi_callback_info info) {
size_t argc = 2;
napi_value args[2];
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &args, NULL, NULL));
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL));

bool is_signed;
NAPI_CALL(env, napi_get_value_bool(env, args[1], &is_signed));
Expand Down Expand Up @@ -98,7 +98,7 @@ static napi_value TestWords(napi_env env, napi_callback_info info) {
uint64_t words[10];

NAPI_CALL(env, napi_get_value_bigint_words(
env, args[0], &sign_bit, &word_count, &words));
env, args[0], &sign_bit, &word_count, words));

NAPI_ASSERT(env, word_count == expected_word_count,
"word counts do not match");
Expand Down

0 comments on commit 210fea5

Please sign in to comment.