mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Changes by wacko@power1.snu.ac.kr (Yoo C. Chung). See ChangeLog Jan 20,21
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2203 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c07f920c70
commit
c5b0cb101c
8 changed files with 113 additions and 38 deletions
|
@ -456,7 +456,6 @@ segindex (size_t size)
|
|||
{
|
||||
assert(size%MINCHUNK == 0);
|
||||
|
||||
|
||||
if (size < CLTOSZ(8))
|
||||
return size/MINCHUNK;
|
||||
else if (size < CLTOSZ(16))
|
||||
|
@ -786,7 +785,7 @@ nmalloc (NSZone *zone, size_t size)
|
|||
if (zptr->blocks->size-zptr->blocks->top < chunksize)
|
||||
/* Get new block. */
|
||||
{
|
||||
size_t blocksize = roundupto(size+NF_HEAD, zone->gran);
|
||||
size_t blocksize = roundupto(chunksize+NF_HEAD, zone->gran);
|
||||
|
||||
/* Any clean way to make gcc shut up here? */
|
||||
NS_DURING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue