mm/mempool/mempool_multiple.c: Remove void * arithmetic
Cast substraction arguments to FAR char *, which gives the same result as the gcc extension on the original void * arithmetic. Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
parent
6ca75deec8
commit
5920a8b673
@ -220,7 +220,7 @@ mempool_multiple_get_dict(FAR struct mempool_multiple_s *mpool,
|
|||||||
col = index - (row << mpool->dict_col_num_log2);
|
col = index - (row << mpool->dict_col_num_log2);
|
||||||
if (mpool->dict[row] == NULL ||
|
if (mpool->dict[row] == NULL ||
|
||||||
mpool->dict[row][col].addr != addr ||
|
mpool->dict[row][col].addr != addr ||
|
||||||
blk - addr >= mpool->dict[row][col].size)
|
(FAR char *)blk - (FAR char *)addr >= mpool->dict[row][col].size)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user