mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
Use 'scm_is_eq' to compare 'SCM' objects.
* libguile/goops.c (scm_compute_applicable_methods): Use 'scm_is_eq'
rather than direct comparison (regression introduced in 649ec8d8
.)
This commit is contained in:
parent
15673f1fd2
commit
b4f7e24c84
1 changed files with 1 additions and 1 deletions
|
@ -2094,7 +2094,7 @@ scm_compute_applicable_methods (SCM gf, SCM args, long len, int find_method_p)
|
||||||
{
|
{
|
||||||
fl = SPEC_OF (SCM_CAR (l));
|
fl = SPEC_OF (SCM_CAR (l));
|
||||||
/* Only accept accessors which match exactly in first arg. */
|
/* Only accept accessors which match exactly in first arg. */
|
||||||
if ((scm_is_null (fl) || types[0] != SCM_CAR (fl))
|
if ((scm_is_null (fl) || !scm_is_eq (types[0], SCM_CAR (fl)))
|
||||||
&& is_accessor_method (SCM_CAR (l)))
|
&& is_accessor_method (SCM_CAR (l)))
|
||||||
continue;
|
continue;
|
||||||
for (i = 0; ; i++, fl = SCM_CDR (fl))
|
for (i = 0; ; i++, fl = SCM_CDR (fl))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue