diff --git a/src/mes.c b/src/mes.c index 16606a60..dae4bd8b 100644 --- a/src/mes.c +++ b/src/mes.c @@ -291,10 +291,12 @@ assoc (SCM x, SCM a) { if (TYPE (x) == TSTRING) return assoc_string (x, a); - while (a != cell_nil && equal2_p (x, CAAR (a)) == cell_f) - a = CDR (a); - if (a != cell_nil) - return CAR (a); + while (a != cell_nil) + { + if (equal2_p (x, CAAR (a)) == cell_t) + return CAR (a); + a = CDR (a); + } return cell_f; }