Attempt to fix warning C4267

This commit is contained in:
Aart Stuurman 2018-01-24 00:19:55 +01:00
parent 271cb5b60d
commit 4072430fb3
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ public:
virtual size_t size() const override
{
// find out size of the size parameter
T size(_data.size());
T size((T::Type)_data.size());
// size of the uint8 or uint32 + the actual string size
return size.size() + _data.size();
@ -160,7 +160,7 @@ public:
virtual void fill(OutBuffer& buffer) const override
{
// create size
T size(_data.size());
T size((T::Type)_data.size());
// first, write down the size of the string
size.fill(buffer);