diff --git a/src/citra_qt/cheats.cpp b/src/citra_qt/cheats.cpp index fc6f102a2f..449b780f7e 100644 --- a/src/citra_qt/cheats.cpp +++ b/src/citra_qt/cheats.cpp @@ -148,7 +148,7 @@ void CheatDialog::OnRowSelected(int row, int column) { ui->tableCheats->setCurrentCell(last_row, last_col); return; } - if (row < cheats.size()) { + if (static_cast(row) < cheats.size()) { if (newly_created) { // Remove the newly created dummy item newly_created = false; diff --git a/src/citra_qt/multiplayer/chat_room.cpp b/src/citra_qt/multiplayer/chat_room.cpp index 1699ed8efb..c1283f524f 100644 --- a/src/citra_qt/multiplayer/chat_room.cpp +++ b/src/citra_qt/multiplayer/chat_room.cpp @@ -406,8 +406,9 @@ void ChatRoom::SetPlayerList(const Network::RoomMember::MemberList& member_list) } void ChatRoom::OnChatTextChanged() { - if (ui->chat_message->text().length() > Network::MaxMessageSize) - ui->chat_message->setText(ui->chat_message->text().left(Network::MaxMessageSize)); + if (ui->chat_message->text().length() > static_cast(Network::MaxMessageSize)) + ui->chat_message->setText( + ui->chat_message->text().left(static_cast(Network::MaxMessageSize))); } void ChatRoom::PopupContextMenu(const QPoint& menu_location) {