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:
parent
bd37037d5f
commit
8fcc680dd2
2
heap.c
2
heap.c
|
@ -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 */
|
||||
void *HeapStackGetFreeSpace(int *MemAvailable)
|
||||
{
|
||||
*MemAvailable = StackTop - (void *)&HeapMemory;
|
||||
*MemAvailable = HeapBottom - StackTop;
|
||||
return StackTop;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue