Skip to content

Commit da2e754

Browse files
committed
test: fix errors reported by newer compiler
- fix error reported about possible use of un-initialized variable from newer compiler Signed-off-by: Michael Dawson <[email protected]>
1 parent 9aaf3b1 commit da2e754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/bigint.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Value TestWords(const CallbackInfo& info) {
4646

4747
int sign_bit;
4848
size_t word_count = 10;
49-
uint64_t words[10];
49+
uint64_t words[10] = {0};
5050

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

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

6666
return BigInt::New(info.Env(), sign_bit, word_count, words);
6767
}

0 commit comments

Comments
 (0)