remove compiler warnings

This commit is contained in:
Jinhao 2018-11-17 06:07:27 +08:00
parent ca9e597e37
commit dec3bdc350

View File

@ -357,12 +357,12 @@ namespace detail
} }
template<typename PredAllowChild> template<typename PredAllowChild>
unsigned distance_if(const node_type * node, PredAllowChild pac) const std::size_t distance_if(const node_type * node, PredAllowChild pac) const
{ {
if(nullptr == node) return 0; if(nullptr == node) return 0;
const node_type * iterator = root_.child; const node_type * iterator = root_.child;
unsigned off = 0; std::size_t off = 0;
std::stack<const node_type* > stack; std::stack<const node_type* > stack;
while(iterator && iterator != node) while(iterator && iterator != node)