From 35609bcfed0184e902c7af25139d0cfd9fd2697e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 16 Feb 2019 00:59:11 +0100 Subject: [PATCH] Fix some signed/unsigned warnings --- libs/pbd/pbd/playback_buffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/pbd/pbd/playback_buffer.h b/libs/pbd/pbd/playback_buffer.h index 7e3a555961..fd79d3bfa7 100644 --- a/libs/pbd/pbd/playback_buffer.h +++ b/libs/pbd/pbd/playback_buffer.h @@ -32,7 +32,7 @@ template class /*LIBPBD_API*/ PlaybackBuffer { public: - PlaybackBuffer (int32_t sz, guint res = 8191) + PlaybackBuffer (guint sz, guint res = 8191) : reservation (res) , _reservation_lock () { @@ -40,7 +40,7 @@ public: int32_t power_of_two; for (power_of_two = 1; 1U << power_of_two < sz; ++power_of_two); - size = 1 << power_of_two; + size = 1U << power_of_two; size_mask = size - 1; buf = new T[size]; @@ -157,7 +157,7 @@ public: } /* read-thead */ - bool can_seek (int cnt) { + bool can_seek (int64_t cnt) { if (cnt > 0) { return read_space() >= cnt; }