aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-11-06 02:22:16 +0000
committernyamatongwe <devnull@localhost>2001-11-06 02:22:16 +0000
commit226a2716914592f741b23d16e3bb2db1557a64b2 (patch)
tree469c83fee38e39e33e78e15dc48e209b845a3ccd /src/Editor.cxx
parentce52c5e49854f698718889fbe8bb2dfa97a9e92b (diff)
downloadscintilla-mirror-226a2716914592f741b23d16e3bb2db1557a64b2.tar.gz
Memory leak fixed in calltips and better casts when returning pointers.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index cb374cc01..ce56ee8b5 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4625,7 +4625,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_GETDOCPOINTER:
- return reinterpret_cast<long>(pdoc);
+ return reinterpret_cast<sptr_t>(pdoc);
case SCI_SETDOCPOINTER:
SetDocPointer(reinterpret_cast<Document *>(lParam));
@@ -4634,7 +4634,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_CREATEDOCUMENT: {
Document *doc = new Document();
doc->AddRef();
- return reinterpret_cast<long>(doc);
+ return reinterpret_cast<sptr_t>(doc);
}
case SCI_ADDREFDOCUMENT: