From ae4803f3b63656532dd033581f775f7628babda9 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Mon, 26 Sep 2016 16:47:00 +0200 Subject: [PATCH] [github24] Removed spurious whitespace. --- src/lib/dhcp/option6_pdexclude.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dhcp/option6_pdexclude.cc b/src/lib/dhcp/option6_pdexclude.cc index 734205d140..4f64bf511e 100644 --- a/src/lib/dhcp/option6_pdexclude.cc +++ b/src/lib/dhcp/option6_pdexclude.cc @@ -170,7 +170,7 @@ Option6PDExclude::unpack(OptionBufferConstIter begin, std::vector delegated_prefix_bytes = delegated_prefix_.toBytes(); // We need to calculate how many bytes include the useful data and assign // zeros to remaining bytes (beyond the prefix length). - const uint8_t bytes_length = (delegated_prefix_length_ / 8) + + const uint8_t bytes_length = (delegated_prefix_length_ / 8) + static_cast(delegated_prefix_length_ % 8 != 0); std::fill(delegated_prefix_bytes.begin() + bytes_length, delegated_prefix_bytes.end(), 0); -- 2.47.2