diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-05-18 16:07:36 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-05-18 16:07:36 +0300 |
commit | a9d7ee879216857fd61b36c70ffea257021c869a (patch) | |
tree | f66f2b0821c28e40930928fed5b8f7320b53f32e /indra | |
parent | 001b9e5ae3ec016d86bb1f58cbff0ebc5d073af0 (diff) |
STORM-1202 ADDITIONAL_FIX Fixing Windows build.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/lltimectrl.cpp | 6 |
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; } |