diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-07-22 02:00:18 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-07-22 23:23:51 +0000 |
commit | 363f6595b4cdb5a734d3ef33a39350ff40c93654 (patch) | |
tree | 80f6e5f6c411dbd2760ff208939f8639da5dad19 /lib | |
parent | 00129ac87205bfdf52a03e1053923ccf498501d4 (diff) |
tlsf make ~0 explicitly unsigned ~0u
Change-Id: Ib3220df24fee470416ef813b89bdc5f27e455af7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tlsf/src/tlsf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tlsf/src/tlsf.c b/lib/tlsf/src/tlsf.c index cea53c3eb8..46ae7616b1 100644 --- a/lib/tlsf/src/tlsf.c +++ b/lib/tlsf/src/tlsf.c @@ -338,14 +338,14 @@ static __inline__ void MAPPING_INSERT(size_t _r, int *_fl, int *_sl) static __inline__ bhdr_t *FIND_SUITABLE_BLOCK(tlsf_t * _tlsf, int *_fl, int *_sl) { - u32_t _tmp = _tlsf->sl_bitmap[*_fl] & (~0 << *_sl); + u32_t _tmp = _tlsf->sl_bitmap[*_fl] & (~0u << *_sl); bhdr_t *_b = NULL; if (_tmp) { *_sl = ls_bit(_tmp); _b = _tlsf->matrix[*_fl][*_sl]; } else { - *_fl = ls_bit(_tlsf->fl_bitmap & (~0 << (*_fl + 1))); + *_fl = ls_bit(_tlsf->fl_bitmap & (~0u << (*_fl + 1))); if (*_fl > 0) { /* likely */ *_sl = ls_bit(_tlsf->sl_bitmap[*_fl]); _b = _tlsf->matrix[*_fl][*_sl]; |