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

Merged VS 2015 64 bit warnings (#40373)

This commit is contained in:
Francis Dupont
2015-11-16 17:47:10 +01:00
parent 0d44dd6131
commit dd784c18ef
15 changed files with 70 additions and 35 deletions

View File

@@ -619,7 +619,8 @@ sendquery(struct query *query, isc_task_t *task)
isc_buffer_putuint8(&b, 0);
/* address */
if (addrl > 0) {
isc_buffer_putmem(&b, addr, addrl - 1);
isc_buffer_putmem(&b, addr,
(unsigned)addrl - 1);
isc_buffer_putuint8(&b,
(addr[addrl - 1] &
mask));
@@ -635,7 +636,8 @@ sendquery(struct query *query, isc_task_t *task)
isc_buffer_putuint8(&b, 0);
/* address */
if (addrl > 0) {
isc_buffer_putmem(&b, addr, addrl - 1);
isc_buffer_putmem(&b, addr,
(unsigned)addrl - 1);
isc_buffer_putuint8(&b,
(addr[addrl - 1] &
mask));