Skip to content

Commit

Permalink
shift left check
Browse files Browse the repository at this point in the history
  • Loading branch information
Владимир Чиж authored and Владимир Чиж committed Aug 9, 2024
1 parent ae7bf60 commit f331c1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CMake on multiple platforms

on:
push:
branches: [ "master" ]
branches: [ "master" "shift_left" ]
pull_request:
branches: [ "master" ]

Expand Down
4 changes: 2 additions & 2 deletions srcbpatch/streamreplacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class UsualReplacer final : public ReplacerWithNext
: src_(src->access())
, trg_(trg->access())
{
buffer_.resize(src_.size() + 1); // reserve place for usage (+1 needed for inner logic but never being accessed)
buffer_.resize(src_.size()); // reserve place for usage (+1 needed for inner logic but never being accessed)
}

void DoReplacements(const char toProcess, const bool aEod) const override;
Expand Down Expand Up @@ -214,7 +214,7 @@ class ChoiceReplacer final : public ReplacerWithNext
rpair.trg_ = vPair.second->access();
}

buffer_.resize(bufferSize + 1); // +1 needed for inner logic but never being accessed
buffer_.resize(bufferSize); // +1 needed for inner logic but never being accessed
}

void DoReplacements(const char toProcess, const bool aEod) const override;
Expand Down

0 comments on commit f331c1e

Please sign in to comment.