Skip to content

Commit

Permalink
Merge pull request #36416 from makortel/patch-5
Browse files Browse the repository at this point in the history
Fix assert in ExternalGeneratorFilter
  • Loading branch information
cmsbuild authored Dec 10, 2021
2 parents ce6fe13 + f5e7c33 commit 17b6de9
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 17b6de9

Please sign in to comment.