-/* $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>
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;