Fixed erroneous comparison
authorMichael Brown <mcb30@etherboot.org>
Tue, 25 Apr 2006 11:54:58 +0000 (11:54 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 25 Apr 2006 11:54:58 +0000 (11:54 +0000)
src/core/malloc.c

index d23a4ee..bead02e 100644 (file)
@@ -97,7 +97,7 @@ void * alloc_memblock ( size_t size, size_t align ) {
                         * (which can happen only at the very end of
                         * the heap).
                         */
-                       if ( ( size_t ) post_size > MIN_MEMBLOCK_SIZE ) {
+                       if ( ( size_t ) post_size >= MIN_MEMBLOCK_SIZE ) {
                                post->size = post_size;
                                list_add ( &post->list, &pre->list );
                        }