]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warning v9.10.4b1
authorMark Andrews <marka@isc.org>
Wed, 9 Mar 2016 01:37:49 +0000 (12:37 +1100)
committerMark Andrews <marka@isc.org>
Wed, 9 Mar 2016 01:38:05 +0000 (12:38 +1100)
(cherry picked from commit 0e5c8a65a207418b22de9ef9c12bb52c50ac8a2a)

lib/dns/rdata/generic/caa_257.c

index 4240a88d5f2d705cf20797c2d247460600b43721..1a681652afcdf5c300c51dd5d35027d455fdb6a9 100644 (file)
@@ -58,7 +58,7 @@ fromtext_caa(ARGS_FROMTEXT) {
                                      ISC_FALSE));
        if (token.value.as_ulong > 255U)
                RETTOK(ISC_R_RANGE);
-       flags = token.value.as_ulong & 255U;
+       flags = (isc_uint8_t)(token.value.as_ulong & 255U);
        RETERR(uint8_tobuffer(flags, target));
 
        /*