From 992e10ae08077fb11f4a125721c353aa1123916f Mon Sep 17 00:00:00 2001 From: BernardXiong Date: Sun, 31 Dec 2017 14:45:16 +0800 Subject: [Kernel] fix the compiling warning. --- src/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object.c') 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; -- cgit v1.3.1