diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-03-18 18:06:37 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-03-18 18:06:37 +0900 |
| commit | fa502b498ed421a7bc95fb675ae0f4c6e2f1c16f (patch) | |
| tree | c547eef42807517b1debd0c7e8d291f3ab52cc35 /src/class.c | |
| parent | 38a3b89d39b3ef71c87b7f794bdc3a57fea5a2ce (diff) | |
| download | mruby-fa502b498ed421a7bc95fb675ae0f4c6e2f1c16f.tar.gz mruby-fa502b498ed421a7bc95fb675ae0f4c6e2f1c16f.zip | |
Need to setup singleton_class chain; fix #3509
Diffstat (limited to 'src/class.c')
| -rw-r--r-- | src/class.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class.c b/src/class.c index 184036a91..521423f37 100644 --- a/src/class.c +++ b/src/class.c @@ -97,6 +97,7 @@ prepare_singleton_class(mrb_state *mrb, struct RBasic *o) } else { sc->super = o->c; + prepare_singleton_class(mrb, (struct RBasic*)sc); } o->c = sc; mrb_field_write_barrier(mrb, (struct RBasic*)o, (struct RBasic*)sc); |
