summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index 53b8d29371..9225a2bc73 100644
--- a/src/object.c
+++ b/src/object.c
@@ -522,7 +522,7 @@ rt_object_t rt_object_find(const char *name, rt_uint8_t type)
/* try to find object */
if (information == RT_NULL)
{
- information = rt_object_get_information(type);
+ information = rt_object_get_information((enum rt_object_class_type)type);
RT_ASSERT(information != RT_NULL);
}
for (node = information->object_list.next;