Size error in big allocation fixed

git-svn-id: http://picoc.googlecode.com/svn/trunk@51 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-02-02 22:32:24 +00:00
parent bd37037d5f
commit 8fcc680dd2

2
heap.c
View file

@ -58,7 +58,7 @@ int HeapPopStack(void *Addr, int Size)
/* get all the free space from the top of the stack - only suitable for temporary work */ /* get all the free space from the top of the stack - only suitable for temporary work */
void *HeapStackGetFreeSpace(int *MemAvailable) void *HeapStackGetFreeSpace(int *MemAvailable)
{ {
*MemAvailable = StackTop - (void *)&HeapMemory; *MemAvailable = HeapBottom - StackTop;
return StackTop; return StackTop;
} }