summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index a00e3250..c9e69261 100644
--- a/hash.c
+++ b/hash.c
@@ -92,10 +92,9 @@ static unsigned long hash_c_str(const wchar_t *str)
static cnum equal_hash(val obj)
{
- if (obj == nil)
- return NUM_MAX;
-
switch (type(obj)) {
+ case NIL:
+ return NUM_MAX;
case LIT:
return hash_c_str(litptr(obj)) & NUM_MAX;
case CONS: