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) {