Skip to content

Commit

Permalink
Fix assert in ExternalGeneratorFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel authored Dec 8, 2021
1 parent c1810d0 commit f5e7c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace externalgen {
{
auto nlines = std::to_string(std::count(iConfig.begin(), iConfig.end(), '\n'));
auto result = fwrite(nlines.data(), sizeof(char), nlines.size(), pipe_);
assert(result = nlines.size());
assert(result == nlines.size());
result = fwrite(iConfig.data(), sizeof(char), iConfig.size(), pipe_);
assert(result == iConfig.size());
fflush(pipe_);
Expand Down

0 comments on commit f5e7c33

Please sign in to comment.