variable shadowing error fix

This commit is contained in:
Allen Webster 2017-06-22 17:56:26 -04:00
parent 752356b8b0
commit bb43c846e9
1 changed files with 2 additions and 2 deletions

View File

@ -143,8 +143,8 @@ cpp__fill_table(Cpp_Keyword_Table *table, char *str, u32_4tech str_count){
str += 8; str += 8;
u32_4tech hash = 0; u32_4tech hash = 0;
for (u32_4tech i = 0; i < str_len; ++i){ for (u32_4tech j = 0; j < str_len; ++j){
hash = (hash << 5) + (u32_4tech)(str[i]); hash = (hash << 5) + (u32_4tech)(str[j]);
} }
u32_4tech first_index = hash % max; u32_4tech first_index = hash % max;