fixed c99-ism

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29486 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2010-02-05 21:00:10 +00:00
parent 9814296d1c
commit 9979e794a8
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-02-05 Riccardo Mottola <rmottola@users.sf.net>
* Headers/Additions/GNUstepBase/GSIMap.h: fixed c99-ism
* Headers/Additions/GNUstepBase/GSBlocks.h : provide gcc 2.95 variadic macro
2010-02-04 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Foundation/NSOperation.h:

View file

@ -943,7 +943,6 @@ GSIMapCountByEnumeratingWithStateObjectsCount(GSIMapTable map,
NSInteger count;
NSInteger i;
count = MIN(len, map->nodeCount - state->state);
/* We can store a GSIMapEnumerator inside the extra buffer in state on all
* platforms that don't suck beyond belief (i.e. everything except win64),
* but we can't on anything where long is 32 bits and pointers are 64 bits,
@ -955,6 +954,9 @@ GSIMapCountByEnumeratingWithStateObjectsCount(GSIMapTable map,
uintptr_t bucket;
};
GSIMapEnumerator_t enumerator;
count = MIN(len, map->nodeCount - state->state);
/* Construct the real enumerator */
if (0 == state->state)
{