summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-07-10 03:14:23 +0000
committerJames Cook <james@lindenlab.com>2009-07-10 03:14:23 +0000
commit24be0ba83c97bcefb8afe565a7483c2e99bbf11a (patch)
tree01fda56d28fd48749f71591e4d0088a45d04d6c8 /indra/newview
parent91f9835176d011e963a6df7d183a3f9c093a1989 (diff)
Fix Linux build error due to F32/S32 conversion warning. Not reviewed.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lllocationhistory.cpp6
1 files changed, 4 insertions, 2 deletions
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();