summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-19 14:54:04 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-19 14:54:04 -0800
commitd3abb71364d041a2d8334fcd8d32ba7857606fb0 (patch)
tree5991ff81ef062a16ec23419a2977eba2016715b4 /lib.c
parentf5b18ec696f2c176a2f9f49a3c3a5e158291d00f (diff)
downloadtxr-d3abb71364d041a2d8334fcd8d32ba7857606fb0.tar.gz
txr-d3abb71364d041a2d8334fcd8d32ba7857606fb0.tar.bz2
txr-d3abb71364d041a2d8334fcd8d32ba7857606fb0.zip
Get rid of macros in favor of safer inline functions.
The recent auto_str("byte str") error could have been caught at compile time.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index ab1447fa..57f340c0 100644
--- a/lib.c
+++ b/lib.c
@@ -582,8 +582,8 @@ obj_t *consp(obj_t *obj)
if (!obj) {
return nil;
} else {
- type_t type = type(obj);
- return (type == CONS || type == LCONS) ? t : nil;
+ type_t ty = type(obj);
+ return (ty == CONS || ty == LCONS) ? t : nil;
}
}