From dec3bdc3500b5a94956b6850be5766f4511e5ad7 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sat, 17 Nov 2018 06:07:27 +0800 Subject: [PATCH] remove compiler warnings --- include/nana/gui/widgets/detail/tree_cont.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nana/gui/widgets/detail/tree_cont.hpp b/include/nana/gui/widgets/detail/tree_cont.hpp index 2490ab95..7dab9d4d 100644 --- a/include/nana/gui/widgets/detail/tree_cont.hpp +++ b/include/nana/gui/widgets/detail/tree_cont.hpp @@ -357,12 +357,12 @@ namespace detail } template - 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; const node_type * iterator = root_.child; - unsigned off = 0; + std::size_t off = 0; std::stack stack; while(iterator && iterator != node)