diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index ebebd485d24f3d0da467d25385b993ab2f588397..c473be852def2c176af8cc22132ac97a4d887e52 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1065,14 +1065,14 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
 		mVertexBuffer->getIndexStrider(indicesp, mIndicesIndex);
 		if (LLPipeline::sUseTriStrips)
 		{
-			for (U16 i = 0; i < num_indices; i++)
+			for (U32 i = 0; i < num_indices; i++)
 			{
 				*indicesp++ = vf.mTriStrip[i] + index_offset;
 			}
 		}
 		else
 		{
-			for (U16 i = 0; i < num_indices; i++)
+			for (U32 i = 0; i < num_indices; i++)
 			{
 				*indicesp++ = vf.mIndices[i] + index_offset;
 			}