From 84d7c832cb8d680a5d13fdc2205c32343448b48d Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 13 Oct 2019 18:50:32 +0200 Subject: [PATCH] Make indices 32 bit to avoid overflows. --- indra/llmath/llvolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 085c5c5df6..33f03aed39 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -5338,7 +5338,7 @@ bool LLVolumeFace::cacheOptimize() // FIRE-23370/BUG-8801/MAIN-5060 #ifdef LL_LINUX - std::vector< U16 > v; + std::vector< U32 > v; for (U32 j = 0; j < triangle_data.size(); ++j) v.push_back( j ); #endif