mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
fb3ec312b6
commit
d18782ed0e
2 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue