From b3d7180164157c64b48ed5ae549d1d02ef92e092 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 24 May 2019 21:00:26 -0400 Subject: yuzu/applets/software_keyboard: Resolve sign mismatch comparison Qt uses a signed value to represent container sizes, so this was causing a sign mismatch warning. --- src/yuzu/applets/software_keyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/yuzu/applets/software_keyboard.cpp b/src/yuzu/applets/software_keyboard.cpp index 4f13e1d75..7c95d730b 100644 --- a/src/yuzu/applets/software_keyboard.cpp +++ b/src/yuzu/applets/software_keyboard.cpp @@ -18,7 +18,7 @@ QtSoftwareKeyboardValidator::QtSoftwareKeyboardValidator( : parameters(std::move(parameters)) {} QValidator::State QtSoftwareKeyboardValidator::validate(QString& input, int& pos) const { - if (input.size() > parameters.max_length) { + if (input.size() > static_cast(parameters.max_length)) { return Invalid; } if (parameters.disable_space && input.contains(QLatin1Char{' '})) { -- cgit v1.2.3