diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llenvironment.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index 54275446e3..21ecf7741b 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -28,6 +28,8 @@ #include "llenvironment.h" +#include <algorithm> + #include "llagent.h" #include "llviewercontrol.h" // for gSavedSettings #include "llviewerregion.h" @@ -1529,7 +1531,7 @@ S32 LLEnvironment::calculateSkyTrackForAltitude(F64 altitude) else if (it == mTrackAltitudes.end()) return 4; - return llmin(std::distance(mTrackAltitudes.begin(), it), 4LL); + return std::min(static_cast<S32>(std::distance(mTrackAltitudes.begin(), it)), 4); } |