diff options
| author | ZiRee <tinacloud@gmx.de> | 2022-07-28 16:18:30 +0000 | 
|---|---|---|
| committer | ZiRee <tinacloud@gmx.de> | 2022-07-28 16:18:30 +0000 | 
| commit | 94cb1ba16c5b301779e437f73af9e06558f15760 (patch) | |
| tree | db9fac2638730971e44fc8df7c384f6822f9a9c1 | |
| parent | 97b0b87f7a908750763a4a357be15dc42f8f8cd3 (diff) | |
GCC11.1 does not like these being floats, so cast them to U32 before using them as array size: error: expression in new-declarator must have integral or enumeration type
| -rw-r--r-- | indra/newview/llvosky.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 1aa00bc894..909588367b 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -100,8 +100,8 @@ LLSkyTex::LLSkyTex() :  void LLSkyTex::init(bool isShiny)  {      mIsShiny = isShiny; -	mSkyData = new LLColor4[SKYTEX_RESOLUTION * SKYTEX_RESOLUTION]; -	mSkyDirs = new LLVector3[SKYTEX_RESOLUTION * SKYTEX_RESOLUTION]; +	mSkyData = new LLColor4[(U32)(SKYTEX_RESOLUTION * SKYTEX_RESOLUTION)]; +	mSkyDirs = new LLVector3[(U32)(SKYTEX_RESOLUTION * SKYTEX_RESOLUTION)];  	for (S32 i = 0; i < 2; ++i)  	{ | 
