From 24be0ba83c97bcefb8afe565a7483c2e99bbf11a Mon Sep 17 00:00:00 2001
From: James Cook <james@lindenlab.com>
Date: Fri, 10 Jul 2009 03:14:23 +0000
Subject: [PATCH] Fix Linux build error due to F32/S32 conversion warning.  Not
 reviewed.

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

diff --git a/indra/newview/lllocationhistory.cpp b/indra/newview/lllocationhistory.cpp
index 43512372b13..0059bfd2dc6 100644
--- a/indra/newview/lllocationhistory.cpp
+++ b/indra/newview/lllocationhistory.cpp
@@ -47,8 +47,10 @@ void addLocationHistory()
 {	
 	LLVector3 position = gAgent.getPositionAgent();
 	std::string region_name = gAgent.getRegion()->getName();
-	std::string location = LLSLURL::buildSLURL(region_name, position.mV[VX], 
-		                                       position.mV[VY], position.mV[VZ]);
+	std::string location = LLSLURL::buildSLURL(region_name,
+			(S32)(position.mV[VX]), 
+		    (S32)(position.mV[VY]), 
+			(S32)(position.mV[VZ]) );
 	LLLocationHistory* lh = LLLocationHistory::getInstance();
 	lh->addItem(location);
 	lh->save();
-- 
GitLab