Merge pull request #323 from jonitis/fix_compilation_warning

Fix compilation warnings about possible loss of data
This commit is contained in:
Takatoshi Kondo
2015-07-31 12:15:11 +09:00

View File

@@ -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;