From c6c910af7328707cc22d961e2d3801f61ff9cec5 Mon Sep 17 00:00:00 2001 From: beru Date: Sat, 25 Apr 2015 16:43:39 +0900 Subject: [PATCH] trivial fix for compiler warning 1>c:\libs\nana\include\nana\gui\widgets\listbox.hpp(251): warning C4018: '<' : signed/unsigned mismatch (..\form_do_you_even_lift.cpp) 1> c:\projects\bro\form_do_you_even_lift.cpp(646) : see reference to function template instantiation 'nana::drawerbase::listbox::item_proxy &nana::drawerbase::listbox::item_proxy::resolve_from(const T &)' being compiled 1> with 1> [ 1> T=Data 1> ] --- include/nana/gui/widgets/listbox.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nana/gui/widgets/listbox.hpp b/include/nana/gui/widgets/listbox.hpp index 1827a585..cb5ac968 100644 --- a/include/nana/gui/widgets/listbox.hpp +++ b/include/nana/gui/widgets/listbox.hpp @@ -248,7 +248,7 @@ namespace nana auto && cells = ores.move_cells(); auto cols = columns(); cells.resize(cols); - for (auto pos = 0; pos < cols; ++pos) + for (auto pos = 0u; pos < cols; ++pos) { auto & el = cells[pos]; if (el.text.size() == 1 && el.text[0] == nana::char_t(0))