Fixed problem with f_freeAlignedBuffer on OS X.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@656 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-07-12 02:01:24 +00:00
parent f721085a15
commit cabd3b05da

View File

@@ -4509,7 +4509,8 @@ void FLMAPI f_freeAlignedBufferImp(
FLMUINT uiAllocSize;
FLMUINT uiPageSize = (FLMUINT)sysconf( _SC_PAGESIZE);
uiAllocSize = FB2UD( (FLMBYTE *)(*ppvAlloc) - uiPageSize);
*ppvAlloc = ((FLMBYTE *)(*ppvAlloc)) - uiPageSize;
uiAllocSize = FB2UD( (FLMBYTE *)(*ppvAlloc));
munmap( *ppvAlloc, uiAllocSize);
}