Skip to content

Commit 4d8732f

Browse files
author
Edward Smith
committed
Updated more typeof to __typeof.
1 parent ea1241c commit 4d8732f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Branch-TestBed/Branch-SDK-Tests/BNCTestCase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ static inline void BNCSleepForTimeInterval(NSTimeInterval seconds) {
2121
double secPart = trunc(seconds);
2222
double nanoPart = trunc((seconds - secPart) * ((double)NSEC_PER_SEC));
2323
struct timespec sleepTime;
24-
sleepTime.tv_sec = (typeof(sleepTime.tv_sec)) secPart;
25-
sleepTime.tv_nsec = (typeof(sleepTime.tv_nsec)) nanoPart;
24+
sleepTime.tv_sec = (__typeof(sleepTime.tv_sec)) secPart;
25+
sleepTime.tv_nsec = (__typeof(sleepTime.tv_nsec)) nanoPart;
2626
nanosleep(&sleepTime, NULL);
2727
}
2828

0 commit comments

Comments
 (0)