diff options
author | Josh Blum | 2012-11-22 22:01:27 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-22 22:01:27 -0800 |
commit | 55c68e6f7a2703bfd6566b0b26151e196d7ea62d (patch) | |
tree | e61ba96ee2bc76cd823e7e0f7d5b523c516ea2cd /lib/block.cpp | |
parent | 784e7dcf40bd3502f228fbc59d023c49110cd09f (diff) | |
download | sandhi-55c68e6f7a2703bfd6566b0b26151e196d7ea62d.tar.gz sandhi-55c68e6f7a2703bfd6566b0b26151e196d7ea62d.tar.bz2 sandhi-55c68e6f7a2703bfd6566b0b26151e196d7ea62d.zip |
ok, but zeros are actually ok here
Diffstat (limited to 'lib/block.cpp')
-rw-r--r-- | lib/block.cpp | 4 |
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); } |