mes.c: fix symbol? for nil.

This commit is contained in:
Jan Nieuwenhuizen 2016-07-17 13:16:10 +02:00
parent 4574896f68
commit f19d6dfde4

6
mes.c
View file

@ -498,8 +498,10 @@ string_p (scm *x)
scm *
symbol_p (scm *x)
{
//TODO: #f,#t,nil also `symbols' atm
return x->type == SYMBOL ? &scm_t : &scm_f;
return (x->type == SYMBOL
&& x != &scm_nil
&& x != &scm_f
&& x != &scm_t) ? &scm_t : &scm_f;
}
scm *