From: Francis Dupont Date: Fri, 19 Jun 2015 13:28:57 +0000 (+0200) Subject: [3899] Merged proposed change from #3886/sedhcpv6 X-Git-Tag: trac3919_base~6^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=285fca3d7d50a47410544931976ac4ba98712dd6;p=thirdparty%2Fkea.git [3899] Merged proposed change from #3886/sedhcpv6 --- diff --git a/src/lib/dhcp/option_custom.cc b/src/lib/dhcp/option_custom.cc index 25982ab4c6..4317b30459 100644 --- a/src/lib/dhcp/option_custom.cc +++ b/src/lib/dhcp/option_custom.cc @@ -327,7 +327,7 @@ OptionCustom::dataFieldToText(const OptionDataType data_type, text << (readBoolean(index) ? "true" : "false"); break; case OPT_INT8_TYPE: - text << readInteger(index); + text << static_cast(readInteger(index)); break; case OPT_INT16_TYPE: text << readInteger(index); @@ -336,7 +336,7 @@ OptionCustom::dataFieldToText(const OptionDataType data_type, text << readInteger(index); break; case OPT_UINT8_TYPE: - text << readInteger(index); + text << static_cast(readInteger(index)); break; case OPT_UINT16_TYPE: text << readInteger(index);