Cleaner code for (pair?)

This commit is contained in:
Justin Ethier 2017-06-07 22:34:21 +00:00
parent dec1cdf772
commit a81161904c

View file

@ -1470,7 +1470,7 @@ object Cyc_is_boolean(object o)
object Cyc_is_pair(object o) object Cyc_is_pair(object o)
{ {
if ((o != NULL) && !is_value_type(o) && ((list) o)->tag == pair_tag) if (is_object_type(o) && ((list) o)->tag == pair_tag)
return boolean_t; return boolean_t;
return boolean_f; return boolean_f;
} }