diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 3d6e45bc4f..6a3949ab8e 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1122,7 +1122,7 @@ rb_obj_freeze_inline(VALUE x) { if (FL_ABLE(x)) { OBJ_FREEZE_RAW(x); - if (!(RBASIC(x)->flags & FL_SINGLETON)) { + if (RBASIC_CLASS(x) && !(RBASIC(x)->flags & FL_SINGLETON)) { rb_freeze_singleton_class(x); } } |