X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fvertexformat.cpp;h=f5e175714187a9eb5a853abc9ba84aa3728864a9;hp=adb33c2afa48178d794a0476263a8d029f8519ac;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hpb=c254bc3ed8df9c4113c975bdd119f127d8360f86 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;