Skip to content

Commit 2108f2d

Browse files
authored
Merge pull request #996 from THISISDINOSAUR/is-995-fix_warnings
Fix implicit conversion warnings (#995)
2 parents 2fc8174 + e064cb7 commit 2108f2d

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)