diff --git a/CHANGELOG.md b/CHANGELOG.md index 226e58b8..326c74b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/widgets/PluginRepl.cpp b/src/widgets/PluginRepl.cpp index 2f68400b..b18df0a0 100644 --- a/src/widgets/PluginRepl.cpp +++ b/src/widgets/PluginRepl.cpp @@ -148,7 +148,7 @@ std::optional HistoricTextEdit::nextHistoryItem(qsizetype diff) bool wasUnfinishedInput = this->historyIdx >= this->history.size(); auto nextIdx = - std::clamp(this->historyIdx + diff, 0LL, this->history.size()); + std::clamp(this->historyIdx + diff, 0, this->history.size()); if (nextIdx == this->historyIdx) { return {}; // nothing changed