summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-06 07:05:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-06 07:05:14 -0700
commit4012973cd1fa083cdc3f0e0b9258628e840a24d1 (patch)
treec06631547afe292e3c62fce0322d8145cb4e4987
parent6b527f98b82276037cf04032f9714b6970813f90 (diff)
downloadtxr-4012973cd1fa083cdc3f0e0b9258628e840a24d1.tar.gz
txr-4012973cd1fa083cdc3f0e0b9258628e840a24d1.tar.bz2
txr-4012973cd1fa083cdc3f0e0b9258628e840a24d1.zip
subtypep: remove useless eq.
* lib.c (subtypep): The sub and sup parameters are compared for equality early in the function; byt the time we get here, we know they are not eq, so nil can be returned.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index f4810a44..cba770b2 100644
--- a/lib.c
+++ b/lib.c
@@ -254,7 +254,7 @@ val subtypep(val sub, val sup)
return nil;
}
- return eq(sub, sup);
+ return nil;
}
}