diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index 34e9babe2cf830c279f386c538df51a9fe528895..b1c6ea26cc5876277da044e72fb1460732523df9 100644
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -479,7 +479,7 @@ void LLVOCache::writeCacheHeader()
 	if(mNumEntries < mCacheSize)
 	{
 		HeaderEntryInfo* entry = new HeaderEntryInfo() ;
-		for(S32 i = mNumEntries ; i < mCacheSize; i++)
+		for(U32 i = mNumEntries ; i < mCacheSize; i++)
 		{
 			//fill the cache with the default entry.
 			if(!checkWrite(apr_file, entry, sizeof(HeaderEntryInfo)))