Fix comparison of `Callable`s with binds

(cherry picked from commit 2caf5ae453)
This commit is contained in:
A Thousand Ships 2023-08-29 16:10:14 +02:00 committed by Yuri Sizov
parent 8d6493fae4
commit a9566c17fc
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ ObjectID CallableCustomBind::get_object() const {
} }
const Callable *CallableCustomBind::get_base_comparator() const { const Callable *CallableCustomBind::get_base_comparator() const {
return &callable; return callable.get_base_comparator();
} }
int CallableCustomBind::get_bound_arguments_count() const { int CallableCustomBind::get_bound_arguments_count() const {
@ -222,7 +222,7 @@ ObjectID CallableCustomUnbind::get_object() const {
} }
const Callable *CallableCustomUnbind::get_base_comparator() const { const Callable *CallableCustomUnbind::get_base_comparator() const {
return &callable; return callable.get_base_comparator();
} }
int CallableCustomUnbind::get_bound_arguments_count() const { int CallableCustomUnbind::get_bound_arguments_count() const {