]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexformat.cpp
Drop Id tags and copyright notices from files
[libs/gl.git] / source / vertexformat.cpp
index adb33c2afa48178d794a0476263a8d029f8519ac..f5e175714187a9eb5a853abc9ba84aa3728864a9 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <cstring>
 #include <msp/strings/lexicalcast.h>
 #include <msp/strings/utils.h>
@@ -74,7 +67,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;