diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp index 4933b438e..578827268 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp @@ -2800,11 +2800,11 @@ void ScintillaEditView::setLineIndent(size_t line, size_t indent) const // Move selection on if (crange.cpMin >= posBefore) { - crange.cpMin += posDifference; + crange.cpMin += static_cast(posDifference); } if (crange.cpMax >= posBefore) { - crange.cpMax += posDifference; + crange.cpMax += static_cast(posDifference); } } else if (posAfter < posBefore) @@ -2813,17 +2813,17 @@ void ScintillaEditView::setLineIndent(size_t line, size_t indent) const if (crange.cpMin >= posAfter) { if (crange.cpMin >= posBefore) - crange.cpMin += posDifference; + crange.cpMin += static_cast(posDifference); else - crange.cpMin = posAfter; + crange.cpMin = static_cast(posAfter); } if (crange.cpMax >= posAfter) { if (crange.cpMax >= posBefore) - crange.cpMax += posDifference; + crange.cpMax += static_cast(posDifference); else - crange.cpMax = posAfter; + crange.cpMax = static_cast(posAfter); } } execute(SCI_SETSEL, crange.cpMin, crange.cpMax);