diff --git a/indra/newview/lltoolplacer.cpp b/indra/newview/lltoolplacer.cpp index 8d5d19bfe7..ea0225d987 100755 --- a/indra/newview/lltoolplacer.cpp +++ b/indra/newview/lltoolplacer.cpp @@ -88,11 +88,11 @@ U32 get_selected_plant(const std::map& list, const std::string& type, S std::string last_selected = gSavedSettings.getString("LastSelected"+type); if (!last_selected.empty()) { - for (U32 i = 0; i < list.size(); ++i) + for (size_t i = 0; i < list.size(); ++i) { if (list.at(i) && list.at(i)->mName == last_selected) { - return i; + return (U32)i; } } }