From Ulrich Hertlein, "Attached is a patch that introduces 'static_cast<unsigned int>' on some instances where
the code returns '.size()' of a std::vector. This caused some warnings when using clang++ on OS X."
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
||||
typedef std::map<Value, std::string> ValueToString;
|
||||
|
||||
IntLookup() {}
|
||||
unsigned int size() const { return _stringToValue.size(); }
|
||||
unsigned int size() const { return static_cast<unsigned int>(_stringToValue.size()); }
|
||||
|
||||
void add( const char* str, Value value )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user