From 1a7e7bb2d1dd507a6fdf883548633bdd14bf6854 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 7 Oct 2022 14:44:13 +0200 Subject: object.c: rb_eql returns int not VALUE It works, but assumes `Qfalse == 0`, which is true today but might not be forever. --- include/ruby/internal/intern/object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ruby') diff --git a/include/ruby/internal/intern/object.h b/include/ruby/internal/intern/object.h index 19af49b140..b9ffa57c06 100644 --- a/include/ruby/internal/intern/object.h +++ b/include/ruby/internal/intern/object.h @@ -92,8 +92,8 @@ VALUE rb_class_new_instance_kw(int argc, const VALUE *argv, VALUE klass, int kw_ * * @param[in] lhs Comparison left hand side. * @param[in] rhs Comparison right hand side. - * @retval RUBY_Qtrue They are equal. - * @retval RUBY_Qfalse Otherwise. + * @retval non-zero They are equal. + * @retval 0 Otherwise. * @note This function actually calls `lhs.eql?(rhs)` so you cannot * implement your class' `#eql?` method using it. */ -- cgit v1.2.3