Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16372 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-04-06 07:14:50 +00:00
parent ec89a4213a
commit f00e78a769
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2003-04-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSThread.m: (GSPerformHolder) execute perform operations
in the same order in which they were submitted.
2003-04-04 Stephane Corthesy <stephane@sente.ch>
* macosx/config.h, macosx/preface.h: Update.

View file

@ -725,7 +725,8 @@ static NSDate *theFuture;
forMode: (NSString*)mode
{
NSRunLoop *loop = [NSRunLoop currentRunLoop];
unsigned c;
unsigned int i;
unsigned int c;
char dummy;
read(inputFd, &dummy, 1);
@ -733,9 +734,9 @@ static NSDate *theFuture;
[subthreadsLock lock];
c = [perfArray count];
while (c-- > 0)
for (i = 0; i < c; i++)
{
GSPerformHolder *h = [perfArray objectAtIndex: c];
GSPerformHolder *h = [perfArray objectAtIndex: i];
[loop performSelector: @selector(fire)
target: h