Skip to content
Snippets Groups Projects
Commit 2a3f022e authored by callum_linden's avatar callum_linden
Browse files

Update to build on Xcode 6.0: clang detecting unsigned int (size_t) comparison...

Update to build on Xcode 6.0: clang detecting unsigned int (size_t) comparison with <0 [-Wtautological-compare]
parent d752550c
No related branches found
No related tags found
No related merge requests found
...@@ -173,8 +173,9 @@ bool LLWearableData::swapWearables(const LLWearableType::EType type, U32 index_a ...@@ -173,8 +173,9 @@ bool LLWearableData::swapWearables(const LLWearableType::EType type, U32 index_a
} }
wearableentry_vec_t& wearable_vec = wearable_iter->second; wearableentry_vec_t& wearable_vec = wearable_iter->second;
if (0 > index_a || index_a >= wearable_vec.size()) return false; // removed 0 > index_a and index_b comparisions - can never be true
if (0 > index_b || index_b >= wearable_vec.size()) return false; if (index_a >= wearable_vec.size()) return false;
if (index_b >= wearable_vec.size()) return false;
LLWearable* wearable = wearable_vec[index_a]; LLWearable* wearable = wearable_vec[index_a];
wearable_vec[index_a] = wearable_vec[index_b]; wearable_vec[index_a] = wearable_vec[index_b];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment