Skip to content

Commit e064cb7

Browse files
author
Elle Sullivan
committed
Fix implicit conversion warnings
1 parent 996fe77 commit e064cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Branch-SDK/Branch-SDK/BNCThreads.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#pragma mark - Blocks and Threads
1919

2020
static inline dispatch_time_t BNCDispatchTimeFromSeconds(NSTimeInterval seconds) {
21-
return dispatch_time(DISPATCH_TIME_NOW, seconds * NSEC_PER_SEC);
21+
return dispatch_time(DISPATCH_TIME_NOW, (int64_t)seconds * NSEC_PER_SEC);
2222
}
2323

2424
static inline void BNCAfterSecondsPerformBlockOnMainThread(NSTimeInterval seconds, dispatch_block_t block) {
@@ -30,7 +30,7 @@ static inline void BNCPerformBlockOnMainThreadAsync(dispatch_block_t block) {
3030
}
3131

3232
static inline uint64_t BNCNanoSecondsFromTimeInterval(NSTimeInterval interval) {
33-
return interval * ((NSTimeInterval) NSEC_PER_SEC);
33+
return (uint64_t)(interval * ((NSTimeInterval) NSEC_PER_SEC));
3434
}
3535

3636
static inline void BNCSleepForTimeInterval(NSTimeInterval seconds) {

0 commit comments

Comments
 (0)