From 456e40e7f8e1dde98a7127b0463f7ae8b6c6e88b Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Mon, 11 Mar 2024 09:11:35 +1100 Subject: Feature [feature-requests:#1512]. Avoid warning C26467 float to unsigned. --- win32/ScintillaWin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index f27cd59ed..806d915b7 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -2528,10 +2528,11 @@ void ScintillaWin::NotifyDoubleClick(Point pt, KeyMod modifiers) { //Platform::DebugPrintf("ScintillaWin Double click 0\n"); ScintillaBase::NotifyDoubleClick(pt, modifiers); // Send myself a WM_LBUTTONDBLCLK, so the container can handle it too. + const POINT point = POINTFromPoint(pt); ::SendMessage(MainHWND(), WM_LBUTTONDBLCLK, FlagSet(modifiers, KeyMod::Shift) ? MK_SHIFT : 0, - MAKELPARAM(pt.x, pt.y)); + MAKELPARAM(point.x, point.y)); } namespace { -- cgit v1.2.3