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 | 4d109f6cd5a921d0c6c78324880bf2abd73ca84f (patch) | |
tree | 6ace6139148d6175f5b4b988984f2c7429647135 /src | |
parent | 6dde89cb0f4642889500e564022d75fd57ce8af6 (diff) | |
download | scintilla-mirror-4d109f6cd5a921d0c6c78324880bf2abd73ca84f.tar.gz |
Support output lengths >2GB for SCI_GETSTYLEDTEXT.
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 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<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); } |