]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexformat.cpp
Make the compiler shut up about a signed/unsigned mismatch
[libs/gl.git] / 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;