From b2fe3d475b5684ec712fe37563476b8da2243826 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Sep 2007 10:10:35 +0000 Subject: [PATCH] Fixed uint/int comparison warning. --- src/osg/Texture2DArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Texture2DArray.cpp b/src/osg/Texture2DArray.cpp index f58465275..bb75065a7 100644 --- a/src/osg/Texture2DArray.cpp +++ b/src/osg/Texture2DArray.cpp @@ -103,7 +103,7 @@ int Texture2DArray::compare(const StateAttribute& sa) const void Texture2DArray::setImage(unsigned int layer, Image* image) { // check if the layer exceeds the texture depth - if (layer >= _textureDepth) + if (static_cast(layer) >= _textureDepth) { // print warning and do nothing notify(WARN)<<"Warning: Texture2DArray::setImage(..) failed, the given layer number is bigger then the size of the texture array."<