Skip to content

Commit

Permalink
test: fix errors reported by newer compiler
Browse files Browse the repository at this point in the history
- fix error reported about possible use of
  un-initialized variable from newer compiler

Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson committed Sep 3, 2021
1 parent 9aaf3b1 commit da2e754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bigint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Value TestWords(const CallbackInfo& info) {

int sign_bit;
size_t word_count = 10;
uint64_t words[10];
uint64_t words[10] = {0};

big.ToWords(&sign_bit, &word_count, words);

Expand All @@ -61,7 +61,7 @@ Value TestWords(const CallbackInfo& info) {
Value TestTooBigBigInt(const CallbackInfo& info) {
int sign_bit = 0;
size_t word_count = SIZE_MAX;
uint64_t words[10];
uint64_t words[10] = {0};

return BigInt::New(info.Env(), sign_bit, word_count, words);
}
Expand Down

0 comments on commit da2e754

Please sign in to comment.