diff options
author | nyamatongwe <unknown> | 2003-12-05 08:51:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-12-05 08:51:43 +0000 |
commit | 06a75bd5c8adc65eadede5a57a63539843f0a61c (patch) | |
tree | 9412171cdd8e7913b9af96bae0e112ff5014824c | |
parent | e05e979c806ce2f6f79530c1314b2ef1c0b439c2 (diff) | |
download | scintilla-mirror-06a75bd5c8adc65eadede5a57a63539843f0a61c.tar.gz |
Some casts fixed to use int rather than short for document positions.
-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 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); |