From 4d109f6cd5a921d0c6c78324880bf2abd73ca84f Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Fri, 24 May 2019 13:00:55 +1000 Subject: Support output lengths >2GB for SCI_GETSTYLEDTEXT. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 6ad81e685..2500e6157 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6360,8 +6360,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { if (lParam == 0) return 0; Sci_TextRange *tr = static_cast(PtrFromSPtr(lParam)); - int iPlace = 0; - for (long iChar = tr->chrg.cpMin; iChar < tr->chrg.cpMax; iChar++) { + Sci::Position iPlace = 0; + for (Sci::Position iChar = tr->chrg.cpMin; iChar < tr->chrg.cpMax; iChar++) { tr->lpstrText[iPlace++] = pdoc->CharAt(iChar); tr->lpstrText[iPlace++] = pdoc->StyleAt(iChar); } -- cgit v1.2.3