X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fvertexformat.cpp;h=f5e175714187a9eb5a853abc9ba84aa3728864a9;hb=b0685fabd8e98a54b396f9b014573f2085743b09;hp=adb33c2afa48178d794a0476263a8d029f8519ac;hpb=c254bc3ed8df9c4113c975bdd119f127d8360f86;p=libs%2Fgl.git diff --git a/source/vertexformat.cpp b/source/vertexformat.cpp index adb33c2a..f5e17571 100644 --- a/source/vertexformat.cpp +++ b/source/vertexformat.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include @@ -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(*i>>2)==type) { if((*i&3)>=size) return offs;