From de9c02bbe8fd3d2da00ae0d466fc4678476b2191 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 23 Nov 2017 17:01:40 +1100 Subject: [PATCH] silence compiler warning [RT #46471] --- lib/isc/include/isc/buffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/include/isc/buffer.h b/lib/isc/include/isc/buffer.h index fd9e470267..7f97ee2035 100644 --- a/lib/isc/include/isc/buffer.h +++ b/lib/isc/include/isc/buffer.h @@ -893,13 +893,13 @@ ISC_LANG_ENDDECLS do { \ unsigned int _length; \ unsigned char *_cp; \ - _length = strlen(_source); \ + _length = (unsigned int)strlen(_source); \ if (ISC_UNLIKELY((_b)->autore)) { \ isc_buffer_t *_tmp = _b; \ ISC_REQUIRE(isc_buffer_reserve(&_tmp, _length) \ == ISC_R_SUCCESS); \ } \ - ISC_REQUIRE(isc_buffer_availablelength(_b) >= (unsigned int) _length); \ + ISC_REQUIRE(isc_buffer_availablelength(_b) >= _length); \ _cp = isc_buffer_used(_b); \ memmove(_cp, (_source), _length); \ (_b)->used += (_length); \