mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
libgcrypt: Avoid -Wsign-compare in rijndael do_setkey()
Avoid a warning
lib/libgcrypt-grub/cipher/rijndael.c:352:21: warning:
comparison of integer expressions of different signedness:
‘int’ and ‘unsigned int’ [-Wsign-compare]
352 | for (i = 0; i < keylen; i++)
|
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
e8b98cc66b
commit
0cb7a44916
1 file changed
+2
-1
@@ -181,7 +181,8 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
|
|||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
static const char *selftest_failed=0;
|
static const char *selftest_failed=0;
|
||||||
int rounds;
|
int rounds;
|
||||||
int i,j, r, t, rconpointer = 0;
|
unsigned int i;
|
||||||
|
int j, r, t, rconpointer = 0;
|
||||||
int KC;
|
int KC;
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user