aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tokenize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenize.c')
-rw-r--r--src/tokenize.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tokenize.c b/src/tokenize.c
index 864da85..1e7a8df 100644
--- a/src/tokenize.c
+++ b/src/tokenize.c
@@ -438,8 +438,7 @@ TokenArray* convert_pp_tokens_to_tokens(TokenArray* pp_tokens) {
size_t len = strlen(pp_tok->value.string);
char* buf = calloc(len + 1, sizeof(char));
- size_t j = 0;
- for (size_t i = 0; i < len; i++, j++) {
+ for (size_t i = 0, j = 0; i < len; i++, j++) {
if (pp_tok->value.string[i] == '\\' && pp_tok->value.string[i + 1] == 'e') {
// \e is not a part of Standard C, but commonly supported.
buf[j] = 033;