sodium_compare: x1, x2 don't have to be volatile

This commit is contained in:
Frank Denis 2017-07-16 01:05:47 +02:00
parent 99f8c19a1b
commit 3d400363b6

View File

@ -165,7 +165,7 @@ sodium_compare(const unsigned char *b1_, const unsigned char *b2_, size_t len)
size_t i;
volatile unsigned char gt = 0U;
volatile unsigned char eq = 1U;
volatile uint16_t x1, x2;
uint16_t x1, x2;
#if HAVE_WEAK_SYMBOLS
_sodium_dummy_symbol_to_prevent_compare_lto(b1, b2, len);