mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user