2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Silent WIN64 warnings

This commit is contained in:
Francis Dupont
2016-01-05 18:37:31 +01:00
parent b7c6138405
commit f2453ece5b

View File

@@ -2305,7 +2305,7 @@ inithash(dns_rbt_t *rbt) {
unsigned int bytes; unsigned int bytes;
rbt->hashsize = RBT_HASH_SIZE; 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); rbt->hashtable = isc_mem_get(rbt->mctx, bytes);
if (rbt->hashtable == NULL) if (rbt->hashtable == NULL)
@@ -2325,7 +2325,7 @@ rehash(dns_rbt_t *rbt, unsigned int newcount) {
unsigned int hash; unsigned int hash;
unsigned int i; unsigned int i;
oldsize = rbt->hashsize; oldsize = (unsigned int)rbt->hashsize;
oldtable = rbt->hashtable; oldtable = rbt->hashtable;
do { do {
INSIST((rbt->hashsize * 2 + 1) > rbt->hashsize); INSIST((rbt->hashsize * 2 + 1) > rbt->hashsize);