From 72b60eb44980cb63763ed12814a486781be474b1 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 30 Jun 2022 08:11:36 +0900 Subject: [PATCH] include/mruby/value.h: remove assertion from mrb_obj_value() The function was called too often, so that even slightest assertion may bother performance. The function is stable enough. --- include/mruby/value.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/mruby/value.h b/include/mruby/value.h index d3a41cefd..a1f41f226 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -359,8 +359,6 @@ mrb_obj_value(void *p) { mrb_value v; SET_OBJ_VALUE(v, (struct RBasic*)p); - mrb_assert(p == mrb_ptr(v)); - mrb_assert(((struct RBasic*)p)->tt == mrb_type(v)); return v; }