From a99b25ed9cafffaf179054d94fb01a00133a7c73 Mon Sep 17 00:00:00 2001 From: ryuz Date: Tue, 27 May 2008 14:36:29 +0000 Subject: [PATCH] (none) --- aplfw/library/container/fixmemheap/fixmemheap_alloc.c | 2 +- aplfw/library/container/fixmemheap/fixmemheap_constructor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aplfw/library/container/fixmemheap/fixmemheap_alloc.c b/aplfw/library/container/fixmemheap/fixmemheap_alloc.c index f54df32..2f914ed 100755 --- a/aplfw/library/container/fixmemheap/fixmemheap_alloc.c +++ b/aplfw/library/container/fixmemheap/fixmemheap_alloc.c @@ -30,7 +30,7 @@ void *FixMemHeap_Alloc(void *pMemHeap, MEMSIZE Size) } /* サイズチェック */ - if ( Size > self->BlkSize) + if ( Size > self->BlkSize ) { return NULL; } diff --git a/aplfw/library/container/fixmemheap/fixmemheap_constructor.c b/aplfw/library/container/fixmemheap/fixmemheap_constructor.c index 9633ce6..dc23f6e 100755 --- a/aplfw/library/container/fixmemheap/fixmemheap_constructor.c +++ b/aplfw/library/container/fixmemheap/fixmemheap_constructor.c @@ -44,7 +44,7 @@ void FixMemHeap_Constructor(C_FIXMEMHEAP *self, void *pMemBase, MEMSIZE BlkSize, /* メモリ初期化 */ ppBlk = (void **)self->pMemBase; - for ( i = 0; i < BlkSize - 1; i++ ) + for ( i = 0; i < BlkNum - 1; i++ ) { ppBlkNext = (void **)((char *)ppBlk + BlkSize); *ppBlk = (void *)ppBlkNext; -- 2.11.0