From f9af4f3d71df9fe6991a3ce08f393878676e1638 Mon Sep 17 00:00:00 2001 From: Karel Slany <karel.slany@nic.cz> Date: Thu, 14 Jul 2016 16:57:19 +0200 Subject: [PATCH] Fixed comparison of signed and unsigned type. --- modules/cookies/cookiectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cookies/cookiectl.c b/modules/cookies/cookiectl.c index 7c25f1605..5db82960d 100644 --- a/modules/cookies/cookiectl.c +++ b/modules/cookies/cookiectl.c @@ -182,7 +182,7 @@ static struct kr_cookie_secret *new_sq_from_hexstr(const JsonNode *node) const char *hexstr = node->string_; uint8_t *data = sq->data; - for (int i = 0; i < len; i += 2) { + for (size_t i = 0; i < len; i += 2) { int num = hexbyte2int(hexstr + i); if (num == -1) { free(sq); -- GitLab