Skip to content

Commit f7ea8fc

Browse files
committed
Explicitly declare dilithium_coeff_eta2[] as signed
1 parent 8cc2ba7 commit f7ea8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/dilithium.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,7 @@ static int dilithium_expand_a(wc_Shake* shake128, const byte* pub_seed, byte k,
23072307
#define DILITHIUM_COEFF_S_VALID_ETA2(b) \
23082308
((b) < DILITHIUM_ETA_2_MOD)
23092309

2310-
static const char dilithium_coeff_eta2[] = {
2310+
static const signed char dilithium_coeff_eta2[] = {
23112311
2, 1, 0, -1, -2,
23122312
2, 1, 0, -1, -2,
23132313
2, 1, 0, -1, -2

0 commit comments

Comments
 (0)