X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fvertexformat.cpp;h=16cf28c7c468483bf319705b4ea8d0e30d02e9cf;hb=fb5da1dff367740868f3cbc5badffb1b4837d82a;hp=adb33c2afa48178d794a0476263a8d029f8519ac;hpb=c254bc3ed8df9c4113c975bdd119f127d8360f86;p=libs%2Fgl.git diff --git a/source/vertexformat.cpp b/source/vertexformat.cpp index adb33c2a..16cf28c7 100644 --- a/source/vertexformat.cpp +++ b/source/vertexformat.cpp @@ -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(*i>>2)==type) { if((*i&3)>=size) return offs;