]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
lint
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Mon, 24 Jul 2006 10:16:59 +0000 (10:16 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Mon, 24 Jul 2006 10:16:59 +0000 (10:16 +0000)
rr.c

diff --git a/rr.c b/rr.c
index 529512f7245b422f574f8f676f3f5d2cdabadc0d..c48467e84520194e4fe4dadf591affff88193e8f 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -1245,8 +1245,10 @@ ldns_rr_compare(const ldns_rr *rr1, const ldns_rr *rr2)
         offset = ldns_rdf_size(ldns_rr_owner(rr1)) + 4 + 2 + 2 + 2;
         /* if either record doesn't have any RDATA... */
         if (offset > rr1_len || offset > rr2_len) {
-            if (rr1_len == rr2_len) return 0;
-            return (rr2_len - rr1_len);
+            if (rr1_len == rr2_len) {
+              return 0;
+            }
+            return (int) (rr2_len - rr1_len);
         }
 
         /* convert RRs into canonical wire format */