[vlc-commits] macOS: Use larger type for bookmark hours and minutes

Marvin Scholz git at videolan.org
Sat May 20 23:29:30 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri May 19 13:34:19 2017 +0200| [c245cdbcabd2da6201c3fce0450a8f59e3811109] | committer: Marvin Scholz

macOS: Use larger type for bookmark hours and minutes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c245cdbcabd2da6201c3fce0450a8f59e3811109
---

 modules/gui/macosx/VLCBookmarksWindowController.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/VLCBookmarksWindowController.m b/modules/gui/macosx/VLCBookmarksWindowController.m
index e3043b56fb..d690430975 100644
--- a/modules/gui/macosx/VLCBookmarksWindowController.m
+++ b/modules/gui/macosx/VLCBookmarksWindowController.m
@@ -341,11 +341,11 @@ clear:
     assert(bookmark != NULL);
 
     mtime_t total = bookmark->i_time_offset;
-    unsigned hour = ( total / ( CLOCK_FREQ * 3600 ) );
-    unsigned min = ( total % ( CLOCK_FREQ * 3600 ) ) / ( CLOCK_FREQ * 60 );
+    uint64_t hour = ( total / ( CLOCK_FREQ * 3600 ) );
+    uint64_t min = ( total % ( CLOCK_FREQ * 3600 ) ) / ( CLOCK_FREQ * 60 );
     float    sec = ( total % ( CLOCK_FREQ * 60 ) ) / ( CLOCK_FREQ * 1. );
 
-    return [NSString stringWithFormat:@"%02d:%02d:%06.3f", hour, min, sec];
+    return [NSString stringWithFormat:@"%02llu:%02llu:%06.3f", hour, min, sec];
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list