From a3ca9963a55d13492a784fe66056c12bf328f447 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 28 Dec 2016 10:17:29 +0100 Subject: [PATCH] output/Timer: pass size_t to Add() --- src/output/Timer.cxx | 3 ++- 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 +#include 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.