diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-14 16:05:16 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-14 16:05:16 -0800 |
commit | 133c18dc71569a4c3dfdf0e5be7bcc8f65c61f43 (patch) | |
tree | a5b7ed955daaa4d4ca6473ffb9f25b314124deb3 /hash.c | |
parent | 06fed2b68e08772c606ee6328d8e661e46c571f8 (diff) | |
download | txr-133c18dc71569a4c3dfdf0e5be7bcc8f65c61f43.tar.gz txr-133c18dc71569a4c3dfdf0e5be7bcc8f65c61f43.tar.bz2 txr-133c18dc71569a4c3dfdf0e5be7bcc8f65c61f43.zip |
* hash.c (inhash): Rename local variable from new to new_p.
This is consistent with usage elsewhere in the module,
and more importantly, keeps our code C++.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -552,11 +552,11 @@ val inhash(val hash, val key, val init) found = h->assoc_fun(key, chain); } else { val *pchain = vecref_l(h->table, num_fast(h->hash_fun(key) % h->modulus)); - val old = *pchain, new; - val *place = h->acons_new_l_fun(key, &new, pchain); + val old = *pchain, new_p; + val *place = h->acons_new_l_fun(key, &new_p, pchain); if (old != *pchain && ++h->count > 2 * h->modulus) hash_grow(h); - if (new) + if (new_p) *place = init; found = h->assoc_fun(key, *pchain); } |