]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Silent WIN64 warnings
authorFrancis Dupont <fdupont@isc.org>
Tue, 5 Jan 2016 17:37:31 +0000 (18:37 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 5 Jan 2016 17:37:31 +0000 (18:37 +0100)
lib/dns/rbt.c

index 686169eff3b613afd7243005ede59830e1b530f2..73f789f609f316b52f6241962a9d1df066157ae6 100644 (file)
@@ -2305,7 +2305,7 @@ inithash(dns_rbt_t *rbt) {
        unsigned int bytes;
 
        rbt->hashsize = RBT_HASH_SIZE;
-       bytes = rbt->hashsize * sizeof(dns_rbtnode_t *);
+       bytes = (unsigned int)rbt->hashsize * sizeof(dns_rbtnode_t *);
        rbt->hashtable = isc_mem_get(rbt->mctx, bytes);
 
        if (rbt->hashtable == NULL)
@@ -2325,7 +2325,7 @@ rehash(dns_rbt_t *rbt, unsigned int newcount) {
        unsigned int hash;
        unsigned int i;
 
-       oldsize = rbt->hashsize;
+       oldsize = (unsigned int)rbt->hashsize;
        oldtable = rbt->hashtable;
        do {
                INSIST((rbt->hashsize * 2 + 1) > rbt->hashsize);