Move declaration upwards to fix compile error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29519 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2010-02-09 08:08:26 +00:00
parent 3dce849c75
commit bb50c0a9a2
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-02-09 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSOperation.m: Move declaration upwards to fix compile error.
2010-02-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSAttributedString.m:

View file

@ -553,6 +553,7 @@ static NSOperationQueue *mainQueue = nil;
waitUntilFinished: (BOOL)shouldWait
{
NSUInteger count;
NSUInteger index;
if (ops == nil || NO == [ops isKindOfClass: [NSArray class]])
{
@ -565,7 +566,6 @@ static NSOperationQueue *mainQueue = nil;
{
BOOL invalidArg = NO;
GS_BEGINITEMBUF(buf, count, id)
NSUInteger index;
NSUInteger toAdd = count;
[ops getObjects: buf];