diff options
| -rw-r--r-- | include/Platform.h | 1 | ||||
| -rw-r--r-- | src/Editor.h | 2 | ||||
| -rw-r--r-- | win32/ScintillaWin.cxx | 4 | 
3 files changed, 4 insertions, 3 deletions
| diff --git a/include/Platform.h b/include/Platform.h index 634792960..235123a55 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -51,6 +51,7 @@ typedef void *FontID;  typedef void *SurfaceID;  typedef void *WindowID;  typedef void *MenuID; +typedef void *TickerID;  /**   * A geometric point class. diff --git a/src/Editor.h b/src/Editor.h index 1e2310513..3a02ebd2a 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -26,7 +26,7 @@ public:  	bool ticking;  	int ticksToWait;  	enum {tickSize = 100}; -	int tickerID; +	TickerID tickerID;  	Timer();  }; diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index ae6018f94..42d835cfb 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -832,9 +832,9 @@ void ScintillaWin::SetTicking(bool on) {  	if (timer.ticking != on) {  		timer.ticking = on;  		if (timer.ticking) { -			timer.tickerID = ::SetTimer(MainHWND(), 1, timer.tickSize, NULL); +			timer.tickerID = reinterpret_cast<TickerID>(::SetTimer(MainHWND(), 1, timer.tickSize, NULL));  		} else { -			::KillTimer(MainHWND(), timer.tickerID); +			::KillTimer(MainHWND(), reinterpret_cast<UINT>(timer.tickerID));  			timer.tickerID = 0;  		}  	} | 
