]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
signed-unsigned comparison warning on solaris10.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 2 Feb 2007 15:04:16 +0000 (15:04 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 2 Feb 2007 15:04:16 +0000 (15:04 +0000)
dname.c

diff --git a/dname.c b/dname.c
index 7ecb5262e863a34cac557c390e3dd12e5f78e62e..c188eb484854d7255e68761c29f0c3944101e11c 100644 (file)
--- a/dname.c
+++ b/dname.c
@@ -322,7 +322,7 @@ ldns_dname_compare(const ldns_rdf *dname1, const ldns_rdf *dname2)
                }
                
                /* now check the label character for character. */
-               for (i = 1; i < *lp1 + 1; i++) {
+               for (i = 1; i < (size_t)(*lp1 + 1); i++) {
                        if (i > *lp2) {
                                /* apparently label 1 is larger */
                                result = 1;