From 24be0ba83c97bcefb8afe565a7483c2e99bbf11a Mon Sep 17 00:00:00 2001 From: James Cook Date: Fri, 10 Jul 2009 03:14:23 +0000 Subject: Fix Linux build error due to F32/S32 conversion warning. Not reviewed. --- indra/newview/lllocationhistory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/lllocationhistory.cpp b/indra/newview/lllocationhistory.cpp index 43512372b1..0059bfd2dc 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(); -- cgit v1.2.3