diff options
Diffstat (limited to 'src/object.c')
| -rw-r--r-- | src/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.c b/src/object.c index e8adc60cc2..2b8ccb62d3 100644 --- a/src/object.c +++ b/src/object.c @@ -258,10 +258,10 @@ rt_object_t rt_object_allocate(enum rt_object_class_type type, const char* name) #ifdef RT_USING_MODULE /* get module object information */ information = (rt_module_self() != RT_NULL) ? - &rt_module_self()->module_object[type] : &rt_module_self()[type]; + &rt_module_self()->module_object[type] : &rt_object_container[type]; #else /* get object information */ - information = &rt_module_self()[type]; + information = &rt_object_container[type]; #endif object = (struct rt_object*)rt_malloc(information->object_size); |
