diff --git a/include/wx/msw/ole/oleutils.h b/include/wx/msw/ole/oleutils.h index afab7f2854..157ec93a44 100644 --- a/include/wx/msw/ole/oleutils.h +++ b/include/wx/msw/ole/oleutils.h @@ -134,7 +134,7 @@ private: { \ wxLogRelease(_T(#classname), m_cRef); \ \ - if ( --m_cRef == 0 ) { \ + if ( --m_cRef == wxAutoULong(0) ) { \ delete this; \ return 0; \ } \