File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818#pragma mark - Blocks and Threads
1919
2020static 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
2424static inline void BNCAfterSecondsPerformBlockOnMainThread (NSTimeInterval seconds, dispatch_block_t block) {
@@ -30,7 +30,7 @@ static inline void BNCPerformBlockOnMainThreadAsync(dispatch_block_t block) {
3030}
3131
3232static inline uint64_t BNCNanoSecondsFromTimeInterval (NSTimeInterval interval) {
33- return interval * ((NSTimeInterval ) NSEC_PER_SEC);
33+ return ( uint64_t )( interval * ((NSTimeInterval ) NSEC_PER_SEC) );
3434}
3535
3636static inline void BNCSleepForTimeInterval (NSTimeInterval seconds) {
You can’t perform that action at this time.
0 commit comments