fix: use qsizetype zerovalue instead of 0LL (#6483)
this fixes 32-bit installs
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
## Unversioned
|
## 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: 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
|
## 2.5.4
|
||||||
|
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ std::optional<QString> HistoricTextEdit::nextHistoryItem(qsizetype diff)
|
|||||||
bool wasUnfinishedInput = this->historyIdx >= this->history.size();
|
bool wasUnfinishedInput = this->historyIdx >= this->history.size();
|
||||||
|
|
||||||
auto nextIdx =
|
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)
|
if (nextIdx == this->historyIdx)
|
||||||
{
|
{
|
||||||
return {}; // nothing changed
|
return {}; // nothing changed
|
||||||
|
|||||||
Reference in New Issue
Block a user