aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMTestTimer.h
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-05-11 18:00:34 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-05-11 18:00:34 +0000
commitca0f99283db052748f3d6d92a2d48818c820cc5c (patch)
tree6e4753e4c9fcfd701b445b646a353a348a21bed6 /UnitTesting/GTMTestTimer.h
parenta2e889fc52ede2939474bd3f163bba0a549d8d25 (diff)
[Author: dmaclach]
Add required cast to have GTMTestTimer compile correctly. We weren't casting a value coming back from calloc as the correct type which was causing issues when you compiled with strict C++ on. DELTA=1 (0 added, 0 deleted, 1 changed) R=thomasvl
Diffstat (limited to 'UnitTesting/GTMTestTimer.h')
-rw-r--r--UnitTesting/GTMTestTimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/UnitTesting/GTMTestTimer.h b/UnitTesting/GTMTestTimer.h
index 6c5fc55..1b5b9dc 100644
--- a/UnitTesting/GTMTestTimer.h
+++ b/UnitTesting/GTMTestTimer.h
@@ -38,7 +38,7 @@ typedef struct {
// Create a test timer
GTM_INLINE GTMTestTimer *GTMTestTimerCreate(void) {
- GTMTestTimer *t = calloc(sizeof(GTMTestTimer), 1);
+ GTMTestTimer *t = (GTMTestTimer *)calloc(sizeof(GTMTestTimer), 1);
if (t) {
if (mach_timebase_info(&t->time_base_info_) == KERN_SUCCESS) {
t->retainCount_ = 1;