From a5eede8fb94749e510d1d6097844ba1b015acc6e Mon Sep 17 00:00:00 2001 From: Bora Sahin Date: Tue, 17 Nov 2009 12:05:56 +0200 Subject: [PATCH] The very same fix we applied to the thread library but for posix this time. --- conts/posix/mm0/lib/bit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conts/posix/mm0/lib/bit.c b/conts/posix/mm0/lib/bit.c index 84750e3..6c1688b 100644 --- a/conts/posix/mm0/lib/bit.c +++ b/conts/posix/mm0/lib/bit.c @@ -51,8 +51,7 @@ int find_and_set_first_free_contig_bits(u32 *word, unsigned int limit, return -1; /* This is a state machine that checks n contiguous free bits. */ - /* FIXME: It should be <= instead of <. Fix & test in a single patch */ - while (i + nbits < limit) { + while (i + nbits <= limit) { first = i; last = i; while (!(word[BITWISE_GETWORD(last)] & BITWISE_GETBIT(last))) {