X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39b91ecabeb35ad879412df1bcd1cec9ea97a20a..5391f772be01cefca80affdc87afbfb894b2976b:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 3a0d0b6913..ecb0781c7c 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -131,7 +131,7 @@ bool wxSocketBase::Close() class _wxSocketInternalTimer: public wxTimer { public: int *m_state; - int m_new_val; + unsigned long m_new_val; void Notify() { @@ -165,7 +165,7 @@ int wxSocketBase::DeferRead(char *buffer, size_t nbytes) m_defer_timer = &timer; timer.m_state = (int *)&m_defer_buffer; - timer.m_new_val = (int)NULL; + timer.m_new_val = 0; timer.Start(m_timeout * 1000, FALSE); @@ -322,7 +322,7 @@ int wxSocketBase::DeferWrite(const char *buffer, size_t nbytes) // Start timer timer.m_state = (int *)&m_defer_buffer; - timer.m_new_val = (int)NULL; + timer.m_new_val = 0; m_defer_timer = &timer; timer.Start(m_timeout * 1000, FALSE);