Minor edits.

This commit is contained in:
sforman
2023-07-24 11:28:45 -07:00
parent f844dbab6c
commit 7cd5943d89
4 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -300,7 +300,7 @@ ht_insert(char *symbol)
while (candidate) {
// Compare pointers then hashes (since we already have
// one hash I'm guessing that that's cheaper or at least
// no more expensive than string comparision.)
// no more expensive than string comparison.)
if (candidate == symbol || hash == hash_key(candidate))
break;
index = (index + increment) % CAPACITY;
@@ -356,6 +356,7 @@ push_symbol(char *symbol, u32 stack)
{
return cons(JOY_VALUE(joySymbol, ht_insert(symbol)), stack);
}
u32
push_int(u32 n, u32 stack)
{