diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-19 14:54:04 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-19 14:54:04 -0800 |
commit | d3abb71364d041a2d8334fcd8d32ba7857606fb0 (patch) | |
tree | 5991ff81ef062a16ec23419a2977eba2016715b4 /lib.c | |
parent | f5b18ec696f2c176a2f9f49a3c3a5e158291d00f (diff) | |
download | txr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |