From 585eb12348a23bfe9e181fa01ba55afa6109c735 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 10 Sep 2011 15:16:15 +0000 Subject: 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 --- firmware/buflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') 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) 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; } -- cgit v1.2.3