From e6644cdc1116e0ae22ca7464111ba26cf3ff96b7 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Sat, 18 Feb 2023 15:14:05 +0000 Subject: [PATCH] Update cwsidetone.cpp --- cwsidetone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwsidetone.cpp b/cwsidetone.cpp index 0654c43..0f2b185 100644 --- a/cwsidetone.cpp +++ b/cwsidetone.cpp @@ -162,7 +162,7 @@ void cwSidetone::stop() qint64 cwSidetone::readData(char *data, qint64 len) { QMutexLocker locker(&mutex); - const int total = qMin(((int)buffer.size()), (int)len); + const qint64 total = qMin(((qint64)buffer.size()), len); memcpy(data, buffer.constData(), total); buffer.remove(0,total); if (buffer.size() == 0) {