summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-09 20:33:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-09 20:33:25 -0800
commitee8103fa715d464da45850f794da2df8f3773811 (patch)
tree9892644aaf89cda6322a3ec3938fb5df83d3f0f2 /hash.c
parent42fdb7eb02593476b5030ce4a7dc471d4b01a49e (diff)
downloadtxr-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index d583862f..390d7662 100644
--- a/hash.c
+++ b/hash.c
@@ -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: