Skip to content

Commit 14e0f81

Browse files
committed
FIx x86 compilation
1 parent 0e37e5b commit 14e0f81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NppJsonViewer/SliderCtrl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SliderCtrl::SliderCtrl(const SliderRange& sliderRange)
1010
SliderCtrl::~SliderCtrl()
1111
{
1212
// Restore the original window procedure on cleanup
13-
SetWindowLongPtr(m_hSelf, GWLP_WNDPROC, (LONG_PTR)m_oldSliderProc);
13+
SetWindowLongPtr(m_hSelf, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(m_oldSliderProc));
1414
}
1515

1616
void SliderCtrl::OnInit(HWND hParent, int sliderID, int sliderInfoID)

src/NppJsonViewer/SliderCtrl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ class SliderCtrl
4848

4949
private:
5050
// Static window procedure for the slider
51-
static INT_PTR CALLBACK runWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
51+
static LRESULT CALLBACK runWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
5252
};

0 commit comments

Comments
 (0)