From 5fd9871fa7be980b106e2df7a97bb8c847935f9f Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sat, 12 Nov 2022 15:35:48 +0100 Subject: [PATCH] workspace: silence signed unsigned comparison warning --- src/workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index 3f8df0a344..f60aa2575c 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -601,7 +601,7 @@ std::shared_ptr parseMode(Output *output, const QJsonObject &modeInf { const QJsonObject size = modeInfo["size"].toObject(); const QSize modeSize = QSize(size["width"].toInt(), size["height"].toInt()); - const int refreshRate = std::round(modeInfo["refresh"].toDouble() * 1000); + const uint32_t refreshRate = std::round(modeInfo["refresh"].toDouble() * 1000); const auto modes = output->modes(); auto it = std::find_if(modes.begin(), modes.end(), [&modeSize, &refreshRate](const auto &mode) {