From a36b91ffe8b6e0f157901a03da4c7c7d4fddf402 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 10 Apr 2021 08:21:58 +0200 Subject: [PATCH] Cast to quint32 --- ext/libstrawberry-common/core/workerpool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/libstrawberry-common/core/workerpool.h b/ext/libstrawberry-common/core/workerpool.h index 00f78ff4..7149cf93 100644 --- a/ext/libstrawberry-common/core/workerpool.h +++ b/ext/libstrawberry-common/core/workerpool.h @@ -279,9 +279,9 @@ void WorkerPool::StartOneWorker(Worker *worker) { // Create a server, find an unused name and start listening forever { #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) - const qint32 unique_number = QRandomGenerator::global()->bounded(static_cast(quint64(this) & 0xFFFFFFFF)); + const quint32 unique_number = QRandomGenerator::global()->bounded(static_cast(quint64(this) & 0xFFFFFFFF)); #else - const qint32 unique_number = qrand() ^ (static_cast(quint64(this) & 0xFFFFFFFF)); + const quint32 unique_number = qrand() ^ (static_cast(quint64(this) & 0xFFFFFFFF)); #endif const QString name = QString("%1_%2").arg(local_server_name_).arg(unique_number);