SF Bug 599

SF Bug #599 JSON::Array and JSON::Object size() member can implicitly
lose precision
https://sourceforge.net/p/poco/patches/120/
This commit is contained in:
aleks-f
2012-12-02 21:26:34 -06:00
parent a54c34e7d0
commit cdd17f5203
3 changed files with 11 additions and 11 deletions

View File

@@ -186,9 +186,9 @@ inline void Object::set(const std::string& key, const Dynamic::Var& value)
}
inline unsigned int Object::size() const
inline std::size_t Object::size() const
{
return _values.size();
return static_cast<std::size_t>(_values.size());
}