summaryrefslogtreecommitdiff
path: root/lib/block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/block.cpp')
-rw-r--r--lib/block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/block.cpp b/lib/block.cpp
index 63edfd0..a4e2780 100644
--- a/lib/block.cpp
+++ b/lib/block.cpp
@@ -90,13 +90,13 @@ void Block::set_output_config(const size_t which_output, const OutputPortConfig
void Block::consume(const size_t which_input, const size_t num_items)
{
- ASSERT(long(num_items) > 0); //sign bit set? you dont want a negative
+ ASSERT(long(num_items) >= 0); //sign bit set? you dont want a negative
(*this)->block->consume(which_input, num_items);
}
void Block::produce(const size_t which_output, const size_t num_items)
{
- ASSERT(long(num_items) > 0); //sign bit set? you dont want a negative
+ ASSERT(long(num_items) >= 0); //sign bit set? you dont want a negative
(*this)->block->produce(which_output, num_items);
}