From 359afe2cdf9258d42bcce390e2f6e2d941252d9e Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 6 May 2018 21:07:35 -0400 Subject: Backport: Remove casts that are not needed since sptr_t and Sci::Position are the same type. Backport of changeset 6735:ed52dd761341. --- win32/ScintillaWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 2393554a8..9a44e71b6 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1673,7 +1673,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case EM_SETSEL: { Sci::Position nStart = static_cast(wParam); - Sci::Position nEnd = static_cast(lParam); + Sci::Position nEnd = lParam; if (nStart == 0 && nEnd == -1) { nEnd = pdoc->Length(); } -- cgit v1.2.3