]> git.tdb.fi Git - libs/gl.git/commitdiff
Make the compiler shut up about a signed/unsigned mismatch
authorMikko Rasa <tdb@tdb.fi>
Wed, 27 Apr 2011 11:02:11 +0000 (11:02 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 27 Apr 2011 11:02:11 +0000 (11:02 +0000)
source/vertexformat.cpp

index adb33c2afa48178d794a0476263a8d029f8519ac..16cf28c7c468483bf319705b4ea8d0e30d02e9cf 100644 (file)
@@ -74,7 +74,7 @@ int VertexFormat::offset(VertexComponent comp, unsigned index) const
        unsigned offs = 0;
        for(const unsigned char *i=begin(); i!=end(); ++i)
        {
-               if((*i>>2)==type)
+               if(static_cast<unsigned>(*i>>2)==type)
                {
                        if((*i&3)>=size)
                                return offs;