diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index 5f582efaf..10f3117b6 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -888,7 +888,8 @@ QString CommandController::execCommand(const QString &textNoEmoji, } } - auto maxSpaces = std::min(this->maxSpaces_, int(words.length()) - 1); + auto maxSpaces = + std::min(this->maxSpaces_, static_cast(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 85540bf56..10eac03bb 100644 --- a/src/providers/twitch/TwitchAccount.cpp +++ b/src/providers/twitch/TwitchAccount.cpp @@ -37,8 +37,8 @@ std::vector getEmoteSetBatches(QStringList emoteSetKeys) { QStringList batch; - int last = - std::min(batchSize, int(emoteSetKeys.size()) - batchSize * i); + int last = std::min( + batchSize, static_cast(emoteSetKeys.size() - batchSize * i)); for (int j = 0; j < last; j++) { batch.push_back(emoteSetKeys.at(j + (batchSize * i))); diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index f2d6322ba..fe962c44f 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -791,7 +791,8 @@ void TwitchMessageBuilder::runIgnoreReplaces( } twitchEmotes.push_back(TwitchEmoteOccurence{ startIndex + pos, - startIndex + pos + emote.first.string.length(), + static_cast(startIndex + pos + + emote.first.string.length()), emote.second, emote.first, });