mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 09:40:00 -04:00
cast to size_t [RT #42537]
This commit is contained in:
parent
314cb50d1a
commit
b621958613
1 changed files with 2 additions and 2 deletions
|
|
@ -71,8 +71,8 @@ isc_ht_init(isc_ht_t **htp, isc_mem_t *mctx, isc_uint8_t bits) {
|
|||
ht->mctx = NULL;
|
||||
isc_mem_attach(mctx, &ht->mctx);
|
||||
|
||||
ht->size = (1<<bits);
|
||||
ht->mask = (1<<bits)-1;
|
||||
ht->size = ((size_t)1<<bits);
|
||||
ht->mask = ((size_t)1<<bits)-1;
|
||||
ht->count = 0;
|
||||
|
||||
ht->table = isc_mem_get(ht->mctx, ht->size * sizeof(isc_ht_node_t*));
|
||||
|
|
|
|||
Loading…
Reference in a new issue