diff --git a/lang/symbol.c b/lang/symbol.c index 9e42ce4..07893d1 100644 --- a/lang/symbol.c +++ b/lang/symbol.c @@ -6,13 +6,13 @@ // FNV-1a Algorithm from http://www.isthe.com/chongo/tech/comp/fnv/ // Thanks for releasing it to the public domain :) -uint32_t fnv32a_str(unsigned char *str) { +uint32_t fnv32a_text(unsigned char *text) { uint32_t hash = (uint32_t)0x811c9dc5; - while (*str) { - hash ^= (uint32_t)*str++; + while (*text) { + hash ^= (uint32_t)*text++; hash *= (uint32_t)0x01000193; } return hash; } -symbol find_symbol(char *name) { return fnv32a_str((unsigned char *)name); } +symbol find_symbol(char *name) { return fnv32a_text((unsigned char *)name); }