Skip to content

Commit

Permalink
[alpha-unito#71] codacy error prone issues: fixed assert in flush_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ARMartinelli committed Feb 26, 2019
1 parent 9dea178 commit 896e50a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/pico/ff_implementation/iteration/base_iteration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ class base_iteration_dispatcher : public base_switch {
void send_mb(pico::base_microbatch *mb, bool fw) { this->send_mb_to(mb, fw); }

void flush_buffer_(tag_t tag, bool fw) {
assert(has_output(tag));
if (!has_output(tag)) {
std::cerr << "error flush buffer in base_iteration.cpp" << std::endl;
return;
}
if (out_buf.find(tag) != out_buf.end()) {
auto &buf(out_buf[tag]);
for (auto mb : buf) {
Expand Down

0 comments on commit 896e50a

Please sign in to comment.