diff --git a/src/ZmqReceiver.cpp b/src/ZmqReceiver.cpp index 1aa2e8e..9799651 100644 --- a/src/ZmqReceiver.cpp +++ b/src/ZmqReceiver.cpp @@ -8,8 +8,8 @@ using namespace std; namespace pt = boost::property_tree; -HeaderDataType::HeaderDataType(const std::string& type, size_t value_shape) : - type(type), value_shape(value_shape), endianness("little") { +HeaderDataType::HeaderDataType(const std::string& type, size_t shape) : + type(type), value_shape(shape), endianness("little") { value_bytes_size = get_type_byte_size(type); } diff --git a/src/ZmqReceiver.hpp b/src/ZmqReceiver.hpp index 1c71644..836c738 100644 --- a/src/ZmqReceiver.hpp +++ b/src/ZmqReceiver.hpp @@ -19,7 +19,7 @@ struct HeaderDataType std::string endianness; size_t value_bytes_size; - HeaderDataType(const std::string& type, size_t n_values); + HeaderDataType(const std::string& type, size_t shape); }; size_t get_type_byte_size(const std::string& type);