aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-12-05 08:51:43 +0000
committernyamatongwe <devnull@localhost>2003-12-05 08:51:43 +0000
commit29d54d3094bbb6de332c4ebbe9312b4b49996f9d (patch)
tree9412171cdd8e7913b9af96bae0e112ff5014824c /src
parent7c0a8e73df69c358f0412fed89f638c90dd8432c (diff)
downloadscintilla-mirror-29d54d3094bbb6de332c4ebbe9312b4b49996f9d.tar.gz
Some casts fixed to use int rather than short for document positions.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index be02055a8..9b7522550 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5692,7 +5692,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
if (lParam == 0)
return 0;
int insertPos = wParam;
- if (static_cast<short>(wParam) == -1)
+ if (static_cast<int>(wParam) == -1)
insertPos = CurrentPosition();
int newCurrent = CurrentPosition();
char *sz = CharPtrFromSPtr(lParam);
@@ -5812,7 +5812,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
return printWrapState;
case SCI_GETSTYLEAT:
- if (static_cast<short>(wParam) >= pdoc->Length())
+ if (static_cast<int>(wParam) >= pdoc->Length())
return 0;
else
return pdoc->StyleAt(wParam);