STORM-1253 WIP Fixed a compiler warning.

master
Vadim ProductEngine 2011-05-30 23:20:04 +03:00
parent 04f680a5c3
commit 345a72f479
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ void LLTimeCtrl::setTime24(F32 time)
{
time = llclamp(time, 0.0f, 23.99f); // fix out of range values
U32 h = time;
U32 h = (U32) time;
U32 m = llround((time - h) * 60); // fixes values like 4.99999
// fix rounding error