Skip to content

Commit

Permalink
Switch from C-style cast to C++ static_cast
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Pane <bpane@pinterest.com>
  • Loading branch information
Brian Pane committed Aug 14, 2018
1 parent d801512 commit 9dfc9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/network/lc_trie.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ template <class T> class LcTrie {
std::sort(ip_prefixes_.begin(), ip_prefixes_.end());

// Build the trie_.
trie_.reserve(size_t(ip_prefixes_.size() / fill_factor_));
trie_.reserve(static_cast<size_t>(ip_prefixes_.size() / fill_factor_));
uint32_t next_free_index = 1;
buildRecursive(0u, 0u, ip_prefixes_.size(), 0u, next_free_index);

Expand Down

0 comments on commit 9dfc9fd

Please sign in to comment.