summaryrefslogtreecommitdiff
path: root/indra/llui/lltimectrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/lltimectrl.cpp')
-rw-r--r--indra/llui/lltimectrl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llui/lltimectrl.cpp b/indra/llui/lltimectrl.cpp
index 08d24a29a8..4b49c45006 100644
--- a/indra/llui/lltimectrl.cpp
+++ b/indra/llui/lltimectrl.cpp
@@ -371,17 +371,17 @@ LLTimeCtrl::EEditingPart LLTimeCtrl::getEditingPart()
S32 cur_pos = mEditor->getCursor();
LLWString time_str = mEditor->getWText();
- size_t colon_index = time_str.find_first_of(':');
+ S32 colon_index = time_str.find_first_of(':');
if (cur_pos <= colon_index)
{
return HOURS;
}
- else if (cur_pos > colon_index && cur_pos <= (time_str.length() - AMPM_LEN))
+ else if (cur_pos > colon_index && cur_pos <= (S32)(time_str.length() - AMPM_LEN))
{
return MINUTES;
}
- else if (cur_pos > (time_str.length() - AMPM_LEN))
+ else if (cur_pos > (S32)(time_str.length() - AMPM_LEN))
{
return DAYPART;
}