From bb43c846e9027984eda8a2fec791e0bb4edee0c9 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 22 Jun 2017 17:56:26 -0400 Subject: [PATCH] variable shadowing error fix --- 4cpp/4cpp_lexer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4cpp/4cpp_lexer.h b/4cpp/4cpp_lexer.h index 384548a3..9dfdb6c3 100644 --- a/4cpp/4cpp_lexer.h +++ b/4cpp/4cpp_lexer.h @@ -143,8 +143,8 @@ cpp__fill_table(Cpp_Keyword_Table *table, char *str, u32_4tech str_count){ str += 8; u32_4tech hash = 0; - for (u32_4tech i = 0; i < str_len; ++i){ - hash = (hash << 5) + (u32_4tech)(str[i]); + for (u32_4tech j = 0; j < str_len; ++j){ + hash = (hash << 5) + (u32_4tech)(str[j]); } u32_4tech first_index = hash % max;