Avoid integer overflow in MonotonicClock{S,MS,US}

This is Darwin specific: the previous implementation was causing an integer
overflow when base.numer is very large. On PPC Darwin, the timebase info is 1000000000/33330116 and this is too large for integer arithmetic.
This commit is contained in:
PHO
2015-01-26 14:54:16 +09:00
committed by Max Kellermann
parent 7bf638b0de
commit 39abd3ecb4
2 changed files with 7 additions and 6 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ver 0.19.9 (not yet released)
* decoder
- dsdiff, dsf: raise ID3 tag limit to 1 MB
* fix clock integer overflow on OS X
* fix build failure with uClibc
* fix build failure on non-POSIX operating systems