diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp
index f9529efdd471091f2d63eb1d4a7de13a77ebb649..44cd8f0371ae8589024069537f026ffcb5e6234e 100644
--- a/indra/newview/lltextureview.cpp
+++ b/indra/newview/lltextureview.cpp
@@ -406,7 +406,7 @@ void LLGLTexMemBar::draw()
 	S32 max_total_mem = LLViewerImage::sMaxTotalTextureMemInMegaBytes;
 	F32 discard_bias = LLViewerImage::sDesiredDiscardBias;
 	S32 line_height = (S32)(LLFontGL::getFontMonospace()->getLineHeight() + .5f);
-	S32 h_offset = (texture_bar_height + 2.8f) * mTextureView->mNumTextureBars ;
+	S32 h_offset = (S32)((texture_bar_height + 2.8f) * mTextureView->mNumTextureBars);
 	//----------------------------------------------------------------------------
 	LLGLSUIDefault gls_ui;
 	F32 text_color[] = {1.f, 1.f, 1.f, 0.75f};