From 5867025842a45b4793e068684accb5a22fb5d3d0 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sun, 30 Oct 2022 11:47:45 +0100 Subject: [PATCH] Fix 32 bits build error --- .../src/ScintillaComponent/ScintillaEditView.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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);