diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-28 10:17:29 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-28 10:17:29 +0100 |
commit | a3ca9963a55d13492a784fe66056c12bf328f447 (patch) | |
tree | 884a781778cc4ed4b6bc3a549bc5cbfa8507fc87 | |
parent | 2d3c23876ce88c5bd58d5e1a87c710c4f0a92e2b (diff) |
output/Timer: pass size_t to Add()
-rw-r--r-- | src/output/Timer.cxx | 3 | ||||
-rw-r--r-- | src/output/Timer.hxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/output/Timer.cxx b/src/output/Timer.cxx index a7fe1fe34..1207100f0 100644 --- a/src/output/Timer.cxx +++ b/src/output/Timer.cxx @@ -42,7 +42,8 @@ void Timer::Reset() started = false; } -void Timer::Add(int size) +void +Timer::Add(size_t size) { assert(started); diff --git a/src/output/Timer.hxx b/src/output/Timer.hxx index ce3d6c9c3..40665a07f 100644 --- a/src/output/Timer.hxx +++ b/src/output/Timer.hxx @@ -21,6 +21,7 @@ #define MPD_TIMER_HXX #include <stdint.h> +#include <stddef.h> struct AudioFormat; @@ -36,7 +37,7 @@ public: void Start(); void Reset(); - void Add(int size); + void Add(size_t size); /** * Returns the number of milliseconds to sleep to get back to sync. |