OSDN Git Service

(none)
authorryuz <ryuz>
Tue, 27 May 2008 14:36:29 +0000 (14:36 +0000)
committerryuz <ryuz>
Tue, 27 May 2008 14:36:29 +0000 (14:36 +0000)
aplfw/library/container/fixmemheap/fixmemheap_alloc.c
aplfw/library/container/fixmemheap/fixmemheap_constructor.c

index f54df32..2f914ed 100755 (executable)
@@ -30,7 +30,7 @@ void *FixMemHeap_Alloc(void *pMemHeap, MEMSIZE Size)
        }
        
        /* サイズチェック */     
-       if ( Size > self->BlkSize)
+       if ( Size > self->BlkSize )
        {
                return NULL;
        }
index 9633ce6..dc23f6e 100755 (executable)
@@ -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;