Fixed compile error on g++ caused by fixing warning.
This commit is contained in:
parent
b211fc7779
commit
4c7a71e3a6
|
|
@ -1,6 +1,6 @@
|
||||||
/**
|
/**
|
||||||
* Numeric field types for AMQP
|
* Numeric field types for AMQP
|
||||||
*
|
*
|
||||||
* @copyright 2014 Copernica BV
|
* @copyright 2014 Copernica BV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -215,4 +215,3 @@ typedef NumericField<double, 'd'> Double;
|
||||||
* end namespace
|
* end namespace
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ public:
|
||||||
virtual size_t size() const override
|
virtual size_t size() const override
|
||||||
{
|
{
|
||||||
// find out size of the size parameter
|
// 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
|
// size of the uint8 or uint32 + the actual string size
|
||||||
return size.size() + _data.size();
|
return size.size() + _data.size();
|
||||||
|
|
@ -160,7 +160,7 @@ public:
|
||||||
virtual void fill(OutBuffer& buffer) const override
|
virtual void fill(OutBuffer& buffer) const override
|
||||||
{
|
{
|
||||||
// create size
|
// create size
|
||||||
T size((T::Type)_data.size());
|
T size((typename T::Type)_data.size());
|
||||||
|
|
||||||
// first, write down the size of the string
|
// first, write down the size of the string
|
||||||
size.fill(buffer);
|
size.fill(buffer);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue