mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Update class.c
Co-authored-by: Satoshi Tagomori <tagomoris@gmail.com>
This commit is contained in:
parent
6ea893f376
commit
6df6aaa036
Notes:
git
2025-05-21 16:51:45 +00:00
1 changed files with 1 additions and 1 deletions
2
class.c
2
class.c
|
@ -702,7 +702,7 @@ class_alloc(VALUE flags, VALUE klass)
|
|||
RCLASS_PRIME_NS((VALUE)obj) = ns;
|
||||
// Classes/Modules defined in user namespaces are
|
||||
// writable directly because it exists only in a namespace.
|
||||
RCLASS_SET_PRIME_CLASSEXT_WRITABLE((VALUE)obj, (NAMESPACE_USER_P(ns) || !rb_namespace_available()) ? true : false);
|
||||
RCLASS_SET_PRIME_CLASSEXT_WRITABLE((VALUE)obj, !rb_namespace_available() || NAMESPACE_USER_P(ns) ? true : false);
|
||||
|
||||
RCLASS_SET_ORIGIN((VALUE)obj, (VALUE)obj);
|
||||
RCLASS_SET_REFINED_CLASS((VALUE)obj, Qnil);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue