From: Mark Andrews Date: Thu, 23 Nov 2017 06:01:40 +0000 (+1100) Subject: silence compiler warning [RT #46471] X-Git-Tag: v9.12.0rc1~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bb32395b2b616d758f8ec4429e4158761016c88;p=thirdparty%2Fbind9.git silence compiler warning [RT #46471] --- diff --git a/lib/isc/include/isc/buffer.h b/lib/isc/include/isc/buffer.h index 1b67a21ea78..bf908b179e4 100644 --- a/lib/isc/include/isc/buffer.h +++ b/lib/isc/include/isc/buffer.h @@ -925,13 +925,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); \