Skip to content

Commit a1fa897

Browse files
committed
wolfcrypt/src/dilithium.c: fix cast flubs in dilithium_encode_gamma1_19_bits() (fixes quantum-safe-wolfssl-all-gcc-latest-m32).
1 parent 6be8a37 commit a1fa897

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/dilithium.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,8 @@ static void dilithium_encode_gamma1_19_bits(const sword32* z, byte* s)
13861386
((word64)z2 << 40) | ((word64)z3 << 60);
13871387
#else
13881388
word32* s32p = (word32*)s;
1389-
s32p[0] = (word16)( z0 | (z1 << 20) );
1390-
s32p[1] = (word16)((z1 >> 12) | (z2 << 8) | (z3 << 28));
1389+
s32p[0] = (word32)( z0 | (z1 << 20) );
1390+
s32p[1] = (word32)((z1 >> 12) | (z2 << 8) | (z3 << 28));
13911391
#endif
13921392
s16p[4] = (word16)((z3 >> 4) );
13931393
#else

0 commit comments

Comments
 (0)