diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-09 20:33:25 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-09 20:33:25 -0800 |
commit | ee8103fa715d464da45850f794da2df8f3773811 (patch) | |
tree | 9892644aaf89cda6322a3ec3938fb5df83d3f0f2 /hash.c | |
parent | 42fdb7eb02593476b5030ce4a7dc471d4b01a49e (diff) | |
download | txr-ee8103fa715d464da45850f794da2df8f3773811.tar.gz txr-ee8103fa715d464da45850f794da2df8f3773811.tar.bz2 txr-ee8103fa715d464da45850f794da2df8f3773811.zip |
Changing representation of objects to allow for unboxed characters.
Now numbers and characters fit into a cell. We lose one more bit
from the range of numbers.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ static long ll_hash(obj_t *obj) case STR: return hash_c_str(obj->st.str); case CHR: - return obj->ch.ch + NUM_MAX / 2; + return c_chr(obj) + NUM_MAX / 2; case NUM: return c_num(obj) & NUM_MAX; case SYM: |