mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-18 11:39:02 +02:00
Fix compilation warnings about possible loss of data
This commit is contained in:
@@ -58,7 +58,7 @@ public:
|
|||||||
return &m_data[1];
|
return &m_data[1];
|
||||||
}
|
}
|
||||||
uint32_t size() const {
|
uint32_t size() const {
|
||||||
return m_data.size() - 1;
|
return static_cast<uint32_t>(m_data.size()) - 1;
|
||||||
}
|
}
|
||||||
bool operator== (const ext& x) const {
|
bool operator== (const ext& x) const {
|
||||||
return m_data == x.m_data;
|
return m_data == x.m_data;
|
||||||
|
Reference in New Issue
Block a user