提交 39673cf4 编写于 作者: L liruncong

[src]消除参数传递警告(warning: passing argument 1 of 'zoneindex' from incompatible...

[src]消除参数传递警告(warning: passing argument 1 of 'zoneindex' from incompatible pointer type [-Wincompatible-pointer-types])
上级 59d04452
......@@ -398,10 +398,10 @@ void rt_system_heap_init(void *begin_addr, void *end_addr)
* Calculate the zone index for the allocation request size and set the
* allocation request size to that particular zone's chunk size.
*/
rt_inline int zoneindex(rt_uint32_t *bytes)
rt_inline int zoneindex(rt_size_t *bytes)
{
/* unsigned for shift opt */
rt_uint32_t n = (rt_uint32_t) * bytes;
rt_uint32_t n = (rt_uint32_t)(*bytes);
if (n < 128)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册