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 /firmware/buflib.c | |
parent | 4096cb1830f4957da74e413d2488105e551fb507 (diff) | |
download | rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.tar.gz rockbox-585eb12348a23bfe9e181fa01ba55afa6109c735.zip |
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
Diffstat (limited to 'firmware/buflib.c')
-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 c144088c27..3b4f522dcf 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c | |||
@@ -179,7 +179,7 @@ handle_table_shrink(struct buflib_context *ctx) | |||
179 | for (handle = ctx->last_handle; !(handle->alloc); handle++); | 179 | for (handle = ctx->last_handle; !(handle->alloc); handle++); |
180 | if (handle > ctx->first_free_handle) | 180 | if (handle > ctx->first_free_handle) |
181 | ctx->first_free_handle = handle - 1; | 181 | ctx->first_free_handle = handle - 1; |
182 | rv = handle == ctx->last_handle; | 182 | rv = handle != ctx->last_handle; |
183 | ctx->last_handle = handle; | 183 | ctx->last_handle = handle; |
184 | return rv; | 184 | return rv; |
185 | } | 185 | } |