diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index 3c59f3795..5f582efaf 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -888,7 +888,7 @@ QString CommandController::execCommand(const QString &textNoEmoji, } } - auto maxSpaces = std::min(this->maxSpaces_, words.length() - 1); + auto maxSpaces = std::min(this->maxSpaces_, int(words.length()) - 1); for (int i = 0; i < maxSpaces; ++i) { commandName += ' ' + words[i + 1]; diff --git a/src/providers/twitch/TwitchAccount.cpp b/src/providers/twitch/TwitchAccount.cpp index 416d5ba61..85540bf56 100644 --- a/src/providers/twitch/TwitchAccount.cpp +++ b/src/providers/twitch/TwitchAccount.cpp @@ -37,7 +37,8 @@ std::vector getEmoteSetBatches(QStringList emoteSetKeys) { QStringList batch; - int last = std::min(batchSize, emoteSetKeys.size() - batchSize * i); + int last = + std::min(batchSize, int(emoteSetKeys.size()) - batchSize * i); for (int j = 0; j < last; j++) { batch.push_back(emoteSetKeys.at(j + (batchSize * i)));