From 789da481fc59ffb1a0d4e4deb0a17ec4fcbd1d58 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@ruby-lang.org>
Date: Sat, 1 Jan 2022 16:57:22 +0900
Subject: Prefer RBOOL

---
 insns.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index 87624a0500..30b7c626d7 100644
--- a/insns.def
+++ b/insns.def
@@ -693,7 +693,7 @@ checktype
 (VALUE val)
 (VALUE ret)
 {
-    ret = (TYPE(val) == (int)type) ? Qtrue : Qfalse;
+    ret = RBOOL(TYPE(val) == (int)type);
 }
 
 /**********************************************************/
-- 
cgit v1.2.3

