aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rational.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rational.c b/rational.c
index f8adafe1e0..1467876724 100644
--- a/rational.c
+++ b/rational.c
@@ -212,8 +212,7 @@ f_minus_one_p(VALUE x)
inline static int
f_kind_of_p(VALUE x, VALUE c)
{
- VALUE ret = rb_obj_is_kind_of(x, c);
- return RTEST(ret);
+ return (int)rb_obj_is_kind_of(x, c);
}
inline static int