diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-05-11 18:00:34 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-05-11 18:00:34 +0000 |
commit | ca0f99283db052748f3d6d92a2d48818c820cc5c (patch) | |
tree | 6e4753e4c9fcfd701b445b646a353a348a21bed6 | |
parent | a2e889fc52ede2939474bd3f163bba0a549d8d25 (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
-rw-r--r-- | UnitTesting/GTMTestTimer.h | 2 |
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; |