We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c733f commit a9e377dCopy full SHA for a9e377d
include/ruby/internal/globals.h
@@ -193,11 +193,7 @@ rb_class_of(VALUE obj)
193
return rb_cFloat;
194
}
195
196
-#if !RUBY_DEBUG
197
- RBIMPL_UNREACHABLE_RETURN(Qfalse);
198
-#else
199
RUBY_ASSERT_FAIL("unexpected type");
200
-#endif
201
202
203
#define CLASS_OF rb_class_of /**< @old{rb_class_of} */
include/ruby/internal/value_type.h
@@ -246,7 +246,7 @@ rb_type(VALUE obj)
246
return RUBY_T_SYMBOL;
247
248
else {
249
- RBIMPL_ASSUME(RB_FLONUM_P(obj));
+ RUBY_ASSERT_ALWAYS(RB_FLONUM_P(obj));
250
return RUBY_T_FLOAT;
251
252
0 commit comments