Skip to content

Commit

Permalink
Fixed uint/int comparison warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 13, 2007
1 parent df1ff17 commit dcc79f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osg/Texture2DArray.cpp
Expand Up @@ -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<int>(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."<<std::endl;
Expand Down

0 comments on commit dcc79f4

Please sign in to comment.