mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Hacks by Greg to placate 4.1 compiler. Just in case we can't persuade them
to 'fix' cast to union with an 'id' member. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21783 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9c4017648e
commit
1ceb50725f
8 changed files with 25 additions and 25 deletions
|
@ -412,7 +412,7 @@ static NSComparisonResult aSort(GSIArrayItem i0, GSIArrayItem i1)
|
|||
{
|
||||
item->_date = RETAIN(theFuture);
|
||||
}
|
||||
GSIArrayInsertSorted(watchers, (GSIArrayItem)item, aSort);
|
||||
GSIArrayInsertSorted(watchers, (GSIArrayItem)((id)item), aSort);
|
||||
}
|
||||
|
||||
- (void) _checkPerformers: (GSRunLoopCtxt*)context
|
||||
|
@ -763,7 +763,7 @@ extern IMP wRetImp;
|
|||
RELEASE(context);
|
||||
}
|
||||
timers = context->timers;
|
||||
GSIArrayInsertSorted(timers, (GSIArrayItem)timer, aSort);
|
||||
GSIArrayInsertSorted(timers, (GSIArrayItem)((id)timer), aSort);
|
||||
}
|
||||
|
||||
|
||||
|
@ -816,7 +816,7 @@ extern IMP wRetImp;
|
|||
if (timerInvalidated(min_timer) == NO)
|
||||
{
|
||||
GSIArrayInsertSortedNoRetain(timers,
|
||||
(GSIArrayItem)min_timer, aSort);
|
||||
(GSIArrayItem)((id)min_timer), aSort);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -880,7 +880,7 @@ extern IMP wRetImp;
|
|||
*/
|
||||
ASSIGN(min_watcher->_date, nxt);
|
||||
GSIArrayInsertSortedNoRetain(watchers,
|
||||
(GSIArrayItem)min_watcher, aSort);
|
||||
(GSIArrayItem)((id)min_watcher), aSort);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1326,13 +1326,13 @@ extern IMP wRetImp;
|
|||
p = GSIArrayItemAtIndex(performers, i).obj;
|
||||
if (p->order > order)
|
||||
{
|
||||
GSIArrayInsertItem(performers, (GSIArrayItem)item, i);
|
||||
GSIArrayInsertItem(performers, (GSIArrayItem)((id)item), i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == end)
|
||||
{
|
||||
GSIArrayInsertItem(performers, (GSIArrayItem)item, i);
|
||||
GSIArrayInsertItem(performers, (GSIArrayItem)((id)item), i);
|
||||
}
|
||||
}
|
||||
RELEASE(item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue