diff options
Diffstat (limited to 'asm')
-rw-r--r-- | asm/preprocesser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asm/preprocesser.cpp b/asm/preprocesser.cpp index 027212a..1245ff7 100644 --- a/asm/preprocesser.cpp +++ b/asm/preprocesser.cpp @@ -83,7 +83,7 @@ preprocess_use_blocks(const vector<token_t *> &tokens) new_tokens.insert(new_tokens.end(), ftokens.begin(), ftokens.end()); - i += 2; + ++i; } else new_tokens.push_back(new token_t{*t}); @@ -128,7 +128,7 @@ preprocess_const_blocks(vector<token_t *> const &tokens) if (i == tokens.size()) return ERR(pp_err_t{pp_err_type_t::EXPECTED_END}); - block_end = i - 1; + block_end = i; blocks[capture.substr(start + 1, end - 1)] = const_t{block_start, block_end}; |