Skip to content

Commit

Permalink
Fix enclosure offsets when there are removed cohorts
Browse files Browse the repository at this point in the history
  • Loading branch information
TinoDidriksen committed Jun 27, 2024
1 parent 6eb3e40 commit b25c871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GrammarApplicator_runRules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ void GrammarApplicator::runGrammarOnWindow() {
current->cohorts[j]->local_number = UI32(j);
current->cohorts[j - ne] = nullptr;
}
for (size_t i = la + 1, j = 0; i < ra; ++i) {
for (size_t j = 0; i < ra; ++i) {
if (current->all_cohorts[i]->enclosed == 0) {
current->cohorts[ni + j + 1] = current->all_cohorts[i];
current->cohorts[ni + j + 1]->local_number = UI32(ni + j + 1);
Expand Down
2 changes: 1 addition & 1 deletion src/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ constexpr auto CG3_COPYRIGHT_STRING = "Copyright (C) 2007-2024 GrammarSoft ApS.

constexpr uint32_t CG3_VERSION_MAJOR = 1;
constexpr uint32_t CG3_VERSION_MINOR = 4;
constexpr uint32_t CG3_VERSION_PATCH = 13;
constexpr uint32_t CG3_VERSION_PATCH = 14;
constexpr uint32_t CG3_REVISION = 13898;
constexpr uint32_t CG3_FEATURE_REV = 13898;
constexpr uint32_t CG3_TOO_OLD = 10373;
Expand Down

0 comments on commit b25c871

Please sign in to comment.