From 4f9b3259d5e529bb4dae7b9240003b7ada2aa8e0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 19 Jun 2020 23:12:18 -0400 Subject: [PATCH] Adds explicit conversions to `qint64`. --- OSBindings/Qt/audiobuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSBindings/Qt/audiobuffer.h b/OSBindings/Qt/audiobuffer.h index 0fe9a1599..96964c495 100644 --- a/OSBindings/Qt/audiobuffer.h +++ b/OSBindings/Qt/audiobuffer.h @@ -50,12 +50,12 @@ struct AudioBuffer: public QIODevice { readPointer += nextLength; } - return dataAvailable; + return qint64(dataAvailable); } qint64 bytesAvailable() const override { std::lock_guard lock(mutex); - return writePointer - readPointer; + return qint64(writePointer - readPointer); } // Required to make QIODevice concrete; not used.