spring/spring — pull request #89 by AMDmi3 (2013-12-10 01:01:29+00:00)
Title: Fix clang error

Fix this:

```
[ 37%] Building CXX object rts/builds/legacy/CMakeFiles/engine-legacy.dir/__/__/Rendering/Textures/S3OTextureHandler.cpp.o
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:100:67: error: non-constant-expression cannot be narrowed from type 'int' to
'unsigned int' in initializer list [-Wc++11-narrowing]
textureCache[model->tex1] = {texBitMaps[0].CreateTexture(true), texBitMaps[0].xsize, texBitMaps[0].ysize};
^~~~~~~~~~~~~~~~~~~
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:100:67: note: override this message by inserting an explicit cast
textureCache[model->tex1] = {texBitMaps[0].CreateTexture(true), texBitMaps[0].xsize, texBitMaps[0].ysize};
^~~~~~~~~~~~~~~~~~~
static_cast( )
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:100:88: error: non-constant-expression cannot be narrowed from type 'int' to
'unsigned int' in initializer list [-Wc++11-narrowing]
textureCache[model->tex1] = {texBitMaps[0].CreateTexture(true), texBitMaps[0].xsize, texBitMaps[0].ysize};
^~~~~~~~~~~~~~~~~~~
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:100:88: note: override this message by inserting an explicit cast
textureCache[model->tex1] = {texBitMaps[0].CreateTexture(true), texBitMaps[0].xsize, texBitMaps[0].ysize};
^~~~~~~~~~~~~~~~~~~
static_cast( )
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:117:67: error: non-constant-expression cannot be narrowed from type 'int' to
'unsigned int' in initializer list [-Wc++11-narrowing]
textureCache[model->tex2] = {texBitMaps[1].CreateTexture(true), texBitMaps[1].xsize, texBitMaps[1].ysize};
^~~~~~~~~~~~~~~~~~~
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:117:67: note: override this message by inserting an explicit cast
textureCache[model->tex2] = {texBitMaps[1].CreateTexture(true), texBitMaps[1].xsize, texBitMaps[1].ysize};
^~~~~~~~~~~~~~~~~~~
static_cast( )
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:117:88: error: non-constant-expression cannot be narrowed from type 'int' to
'unsigned int' in initializer list [-Wc++11-narrowing]
textureCache[model->tex2] = {texBitMaps[1].CreateTexture(true), texBitMaps[1].xsize, texBitMaps[1].ysize};
^~~~~~~~~~~~~~~~~~~
/home/amdmi3/projects/external/spring/rts/Rendering/Textures/S3OTextureHandler.cpp:117:88: note: override this message by inserting an explicit cast
textureCache[model->tex2] = {texBitMaps[1].CreateTexture(true), texBitMaps[1].xsize, texBitMaps[1].ysize};
^~~~~~~~~~~~~~~~~~~
static_cast( )
4 errors generated.
```