From 41e2a07b3ef72773f3402871283b3402095e6db1 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Mon, 13 Jan 2025 10:22:37 -0500 Subject: [PATCH] Fix build failure on 32-bit with taglib 2 This commit fixes: #7375. --- ext/libclementine-tagreader/cloudstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/libclementine-tagreader/cloudstream.cpp b/ext/libclementine-tagreader/cloudstream.cpp index 95dc69ccaa..04dafadaa2 100644 --- a/ext/libclementine-tagreader/cloudstream.cpp +++ b/ext/libclementine-tagreader/cloudstream.cpp @@ -97,7 +97,7 @@ TagLib::ByteVector CloudStream::readBlock(size_t length) { TagLib::ByteVector CloudStream::readBlock(ulong length) { #endif const uint start = cursor_; - const uint end = qMin(cursor_ + length - 1, length_ - 1); + const uint end = qMin((size_t)(cursor_ + length - 1), (size_t)(length_ - 1)); if (end < start) { return TagLib::ByteVector(); @@ -187,7 +187,7 @@ void CloudStream::seek(long offset, TagLib::IOStream::Position p) { case TagLib::IOStream::End: // This should really not have qAbs(), but OGG reading needs it. - cursor_ = qMax(0UL, length_ - qAbs(offset)); + cursor_ = qMax(0UL, (unsigned long)(length_ - qAbs(offset))); break; } }