Fixed compile error on g++ caused by fixing warning.

This commit is contained in:
Aart Stuurman 2018-01-24 00:59:46 +01:00
parent b211fc7779
commit 4c7a71e3a6
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/**
* Numeric field types for AMQP
*
*
* @copyright 2014 Copernica BV
*/
@ -215,4 +215,3 @@ typedef NumericField<double, 'd'> Double;
* end namespace
*/
}

View File

@ -119,7 +119,7 @@ public:
virtual size_t size() const override
{
// find out size of the size parameter
T size((T::Type)_data.size());
T size((typename 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((T::Type)_data.size());
T size((typename T::Type)_data.size());
// first, write down the size of the string
size.fill(buffer);