From a079ac98c702bcb9de9860cd33c440941fb04a2a Mon Sep 17 00:00:00 2001
From: Vadim ProductEngine <vsavchuk@productengine.com>
Date: Tue, 31 May 2011 03:12:36 +0300
Subject: [PATCH] STORM-1253 WIP Fixed more compiler warnings.

---
 indra/newview/llfloatereditdaycycle.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llfloatereditdaycycle.cpp b/indra/newview/llfloatereditdaycycle.cpp
index 91809e0707d..2ff6901652d 100644
--- a/indra/newview/llfloatereditdaycycle.cpp
+++ b/indra/newview/llfloatereditdaycycle.cpp
@@ -456,8 +456,8 @@ void LLFloaterEditDayCycle::dumpTrack()
 	for (std::map<F32, LLWLParamKey>::iterator it = cur_dayp.mTimeMap.begin(); it != cur_dayp.mTimeMap.end(); ++it)
 	{
 		F32 time = it->first * 24.0f;
-		S32 h = time;
-		S32 m = (time - h) * 60.0f;
+		S32 h = (S32) time;
+		S32 m = (S32) ((time - h) * 60.0f);
 		LL_DEBUGS("Windlight") << llformat("(%.3f) %02d:%02d", time, h, m) << " => " << it->second.name << LL_ENDL;
 	}
 }
-- 
GitLab