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 authored and Deepak Rajamohan committed Sep 23, 2021
1 parent 7b573b1 commit 309ff88
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 309ff88

Please sign in to comment.