Correctly report if variables are bound or not in si_bds_val

For thread local bindings, ECL_NO_TL_BINDING is used to signal an
    unbound variable. Fixes error from #325.
This commit is contained in:
Marius Gerbershagen 2018-05-27 17:33:48 +02:00
parent 5de18683ac
commit 861e798cd3

View file

@ -245,7 +245,7 @@ cl_object
si_bds_val(cl_object arg)
{
cl_object v = get_bds_ptr(arg)->value;
@(return ((v == OBJNULL)? ECL_UNBOUND : v));
@(return ((v == OBJNULL || v == ECL_NO_TL_BINDING)? ECL_UNBOUND : v));
}
#ifdef ecl_bds_bind