From df48b6485e268fb3781867728d37c0b1df948d28 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 25 Apr 2018 15:16:49 +1000 Subject: Remove casts that are not needed since sptr_t and Sci::Position are the same type. --- 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 57299a053..dcb7d9334 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