diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-09-10 15:16:15 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-09-10 15:16:15 +0000 |
| commit | 585eb12348a23bfe9e181fa01ba55afa6109c735 (patch) | |
| tree | 0fc79586c72d092862637674eb09f7c0c7a39013 | |
| parent | 4096cb1830f4957da74e413d2488105e551fb507 (diff) | |
| download | rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.zip rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.tar.gz rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.tar.bz2 rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.tar.xz | |
Buflib: Correct return value of handle_table_shrink() to match comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30495 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/buflib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c index c144088c..3b4f522 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c @@ -179,7 +179,7 @@ handle_table_shrink(struct buflib_context *ctx) for (handle = ctx->last_handle; !(handle->alloc); handle++); if (handle > ctx->first_free_handle) ctx->first_free_handle = handle - 1; - rv = handle == ctx->last_handle; + rv = handle != ctx->last_handle; ctx->last_handle = handle; return rv; } |