mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-30 10:42:47 +01:00
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.
This commit is contained in:
parent
cf9cc41478
commit
b3d7180164
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ QtSoftwareKeyboardValidator::QtSoftwareKeyboardValidator(
|
||||||
: parameters(std::move(parameters)) {}
|
: parameters(std::move(parameters)) {}
|
||||||
|
|
||||||
QValidator::State QtSoftwareKeyboardValidator::validate(QString& input, int& pos) const {
|
QValidator::State QtSoftwareKeyboardValidator::validate(QString& input, int& pos) const {
|
||||||
if (input.size() > parameters.max_length) {
|
if (input.size() > static_cast<s64>(parameters.max_length)) {
|
||||||
return Invalid;
|
return Invalid;
|
||||||
}
|
}
|
||||||
if (parameters.disable_space && input.contains(QLatin1Char{' '})) {
|
if (parameters.disable_space && input.contains(QLatin1Char{' '})) {
|
||||||
|
|
Loading…
Reference in a new issue