Proper cast do avod VS2017 warning.

master
Nicky Dasmijn 2020-07-20 11:54:32 +02:00
parent 9a8171df90
commit b3fc9a7ca1
1 changed files with 2 additions and 1 deletions

View File

@ -1382,7 +1382,8 @@ void LLPanelEditWearable::onTabChanged(LLUICtrl* ctrl, LLWearableType::EType typ
return;
}
U8 num_subparts = wearable_entry->mSubparts.size();
llassert_always(wearable_entry->mSubparts.size() <= 0xFF);
U8 num_subparts = static_cast<U8>(wearable_entry->mSubparts.size());
for (U8 index = 0; index < num_subparts; ++index)
{
ESubpart subpart_e = wearable_entry->mSubparts[index];