diff options
author | Zufu Liu <unknown> | 2019-05-24 13:00:55 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-05-24 13:00:55 +1000 |
commit | da8268cc236ca2be1303f678e7f7b667d0cd1d51 (patch) | |
tree | eaf4ab0f3d7660c5e21abb3dd4ec2f5040ece1ed /src | |
parent | 1ae8e46fc55d378679d33700635c730c55038deb (diff) | |
download | scintilla-mirror-da8268cc236ca2be1303f678e7f7b667d0cd1d51.tar.gz |
Backport: Support output lengths >2GB for SCI_GETSTYLEDTEXT.
Backport of changeset 7506:d20bd1c65a73.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index ca63c808d..161e71706 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6356,8 +6356,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { if (lParam == 0) return 0; Sci_TextRange *tr = static_cast<Sci_TextRange *>(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); } |