diff options
| author | Jason Pan <[email protected]> | 2016-08-01 19:06:34 +0800 |
|---|---|---|
| committer | Jason Pan <[email protected]> | 2016-08-01 19:06:34 +0800 |
| commit | e4b138f810665f9a3b3749cd336613ca2f7c32af (patch) | |
| tree | 666501da7ff09cd42417d04f0055b5e7237726d7 /src/kservice.c | |
| parent | c641c8019e059a89d9509210eb01e655e0a15ca7 (diff) | |
Fix type size for 16bit cpu
Diffstat (limited to 'src/kservice.c')
| -rw-r--r-- | src/kservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c index a74e2b13fd..7250639346 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -1221,7 +1221,7 @@ const rt_uint8_t __lowest_bit_bitmap[] = * @return return the index of the first bit set. If value is 0, then this function * shall return 0. */ -int __rt_ffs(int value) +rt_ubase_t __rt_ffs(rt_ubase_t value) { if (value == 0) return 0; @@ -1282,7 +1282,7 @@ void rt_assert_handler(const char* ex_string, const char* func, rt_size_t line) else { rt_assert_hook(ex_string, func, line); - } + } } RTM_EXPORT(rt_assert_handler); #endif /* RT_DEBUG */ |
