diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/PortImpl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/PortImpl.hpp b/src/engine/PortImpl.hpp index 30d5a9b5..9837ebf2 100644 --- a/src/engine/PortImpl.hpp +++ b/src/engine/PortImpl.hpp @@ -99,7 +99,7 @@ public: uint32_t index() const { return _index; } uint32_t poly() const { return _poly; } DataType type() const { return _type; } - size_t buffer_size() const { return _buffer_size; } + size_t buffer_size() const { return (_type == DataType::CONTROL) ? 1 : _buffer_size; } virtual void set_buffer_size(size_t size); |