summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2017-12-31 14:45:16 +0800
committerBernardXiong <[email protected]>2017-12-31 14:45:16 +0800
commit992e10ae08077fb11f4a125721c353aa1123916f (patch)
tree7d3e319946d2f5c88a5a178810187909653920b3 /src/object.c
parentd219f5bfa904100332b7e30380ab83597fbe8b85 (diff)
[Kernel] fix the compiling warning.
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;