diff options
| author | Bernard Xiong <[email protected]> | 2019-03-10 13:02:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-03-10 13:02:59 +0800 |
| commit | 1cf890c1bf73558ff9b129fa64d4e11689e1bef7 (patch) | |
| tree | 7c2c35592e1934e09f7944a593449bf9ffc468c3 /src | |
| parent | 59d04452ce7baffde6269380a78e5d3c5a3b93e6 (diff) | |
| parent | 4f108dbadf597ca311a71c6e64940c459524d968 (diff) | |
Merge pull request #2413 from liruncong/errorwarn
部分警告及问题修改
Diffstat (limited to 'src')
| -rw-r--r-- | src/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slab.c b/src/slab.c index bf26c84cca..f4806ddb60 100644 --- a/src/slab.c +++ b/src/slab.c @@ -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) { |
