From 0fa6414516d07124076e8b3c2bf9e6094d01be8e Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 2 Sep 2011 14:04:48 +0000 Subject: [PATCH] Fix comparison between signed and unsigned. --- rr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rr.c b/rr.c index 3e24cbde..2caed507 100644 --- a/rr.c +++ b/rr.c @@ -434,7 +434,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str, if (c != -1) { rd_strlen = strlen(rd); } - if (c == -1 || cur_hex_data_size + rd_strlen > 2 * hex_data_size) { + if (c == -1 || (size_t)cur_hex_data_size + rd_strlen > 2 * (size_t)hex_data_size) { LDNS_FREE(hex_data_str); LDNS_FREE(rd); LDNS_FREE(b64); -- 2.47.3