fix: use qsizetype zerovalue instead of 0LL (#6483)

this fixes 32-bit installs
This commit is contained in:
pajlada
2025-09-26 00:22:25 +02:00
committed by GitHub
parent 6e0533e1da
commit cd7272a444
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ std::optional<QString> HistoricTextEdit::nextHistoryItem(qsizetype diff)
bool wasUnfinishedInput = this->historyIdx >= this->history.size();
auto nextIdx =
std::clamp(this->historyIdx + diff, 0LL, this->history.size());
std::clamp<qsizetype>(this->historyIdx + diff, 0, this->history.size());
if (nextIdx == this->historyIdx)
{
return {}; // nothing changed