From: Mikko Rasa Date: Wed, 27 Apr 2011 11:02:11 +0000 (+0000) Subject: Make the compiler shut up about a signed/unsigned mismatch X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=483a5855f408e98c348ee17719dc4ca1179ec630;p=libs%2Fgl.git Make the compiler shut up about a signed/unsigned mismatch --- 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;