diff --git a/Testing/diningPhilosophers.m b/Testing/diningPhilosophers.m index 47c99df54..f486673cb 100644 --- a/Testing/diningPhilosophers.m +++ b/Testing/diningPhilosophers.m @@ -134,7 +134,7 @@ int main() // Have them sit at the table for (i = 0;i < 5; ++i) [NSThread detachNewThreadSelector:@selector(sitAtChair:) - toTarget:p[i] withObject:i]; + toTarget:p[i] withObject: (id)i]; // Now let them all eat for (i = 0;i < 5; ++i)