mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
buflib_malloc: fixed signed/unsigned comparison
Change-Id: Ie346759a0dda96debd8448fd44ca3e86d40ef348
This commit is contained in:
parent
d521020d21
commit
a9b93bb4cd
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ unsigned buflib_pin_count(struct buflib_context *ctx, int handle)
|
||||||
|
|
||||||
void _buflib_malloc_put_data_pinned(struct buflib_context *ctx, void *data)
|
void _buflib_malloc_put_data_pinned(struct buflib_context *ctx, void *data)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < ctx->num_allocs; ++i)
|
for (size_t i = 0; i < ctx->num_allocs; ++i)
|
||||||
{
|
{
|
||||||
if (ctx->allocs[i].user == data)
|
if (ctx->allocs[i].user == data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue