瀏覽代碼

Fixed erroneous comparison

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
face774c4c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/core/malloc.c

+ 1
- 1
src/core/malloc.c 查看文件

@@ -97,7 +97,7 @@ void * alloc_memblock ( size_t size, size_t align ) {
97 97
 			 * (which can happen only at the very end of
98 98
 			 * the heap).
99 99
 			 */
100
-			if ( ( size_t ) post_size > MIN_MEMBLOCK_SIZE ) {
100
+			if ( ( size_t ) post_size >= MIN_MEMBLOCK_SIZE ) {
101 101
 				post->size = post_size;
102 102
 				list_add ( &post->list, &pre->list );
103 103
 			}

Loading…
取消
儲存