1
0
Эх сурвалжийг харах

there is no need to type cast for "object"

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2242 bbd45198-f89e-11dd-88c7-29a3b14d5316
dzzxzz@gmail.com 12 жил өмнө
parent
commit
f7aadffcde
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/object.c

+ 1 - 1
src/object.c

@@ -409,7 +409,7 @@ rt_object_t rt_object_find(const char *name, rt_uint8_t type)
 			/* leave critical */
 			rt_exit_critical();
 
-			return (rt_object_t)object;
+			return object;
 		}
 	}