Explicitly declare dilithium_coeff_eta2[] as signed

This commit is contained in:
Anthony Hu
2025-07-02 15:50:51 -04:00
parent 8cc2ba7153
commit f7ea8fca67

View File

@@ -2307,7 +2307,7 @@ static int dilithium_expand_a(wc_Shake* shake128, const byte* pub_seed, byte k,
#define DILITHIUM_COEFF_S_VALID_ETA2(b) \
((b) < DILITHIUM_ETA_2_MOD)
static const char dilithium_coeff_eta2[] = {
static const signed char dilithium_coeff_eta2[] = {
2, 1, 0, -1, -2,
2, 1, 0, -1, -2,
2, 1, 0, -1, -2