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
View File
@@ -3,6 +3,7 @@
## Unversioned
- Dev: Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. (#6493)
- Dev: Fix 32-bit compile in PluginRepl. (#6483)
## 2.5.4
+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