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 ad1b6ef0ac
commit a4f4fc50b9
2 changed files with 5 additions and 4 deletions

1
NEWS
View File

@@ -1,5 +1,6 @@
ver 0.18.23 (not yet released)
* despotify: remove defunct plugin
* fix clock integer overflow on OS X
* fix gcc 5.0 warnings
ver 0.18.22 (2014/01/14)