Commit f9af4f3d authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý
Browse files

Fixed comparison of signed and unsigned type.

parent d4edebc4
...@@ -182,7 +182,7 @@ static struct kr_cookie_secret *new_sq_from_hexstr(const JsonNode *node) ...@@ -182,7 +182,7 @@ static struct kr_cookie_secret *new_sq_from_hexstr(const JsonNode *node)
const char *hexstr = node->string_; const char *hexstr = node->string_;
uint8_t *data = sq->data; 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); int num = hexbyte2int(hexstr + i);
if (num == -1) { if (num == -1) {
free(sq); free(sq);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment