Skip to content
This repository has been archived by the owner on Mar 18, 2018. It is now read-only.

Commit

Permalink
Add some casts to satisfy Apple's gcc.
Browse files Browse the repository at this point in the history
git-svn-id: https://opencflite.svn.sourceforge.net/svnroot/opencflite@105 949b7c4e-b822-e185-8c53-f993a654f32e
  • Loading branch information
bfulgham committed Feb 20, 2009
1 parent 7bf7db3 commit 3eefe48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/CFRunLoopTimerExample/CFRunLoopTimerExample.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ TimerCallback(CFRunLoopTimerRef timer, void *info)
static TimerContainerRef
TimerContainerCreate(CFIndex inElements)
{
return (CFAllocatorAllocate(kCFAllocatorSystemDefault,
return (TimerContainerRef)(CFAllocatorAllocate(kCFAllocatorSystemDefault,
inElements * sizeof(TimerData *),
0));
}
Expand Down Expand Up @@ -235,7 +235,7 @@ TimerDataCreate(CFIndex inIndex, double inLimit, const char *inInterval)

/* Allocate storage for the timer data. */

theData = CFAllocatorAllocate(kCFAllocatorSystemDefault,
theData = (TimerData*)CFAllocatorAllocate(kCFAllocatorSystemDefault,
sizeof (TimerData),
0);
require(theData != NULL, done);
Expand Down

0 comments on commit 3eefe48

Please sign in to comment.