]> git.saurik.com Git - wxWidgets.git/commitdiff
explicit cast for digital mars to use OLE
authorChris Elliott <biol75@york.ac.uk>
Thu, 24 Apr 2003 11:15:36 +0000 (11:15 +0000)
committerChris Elliott <biol75@york.ac.uk>
Thu, 24 Apr 2003 11:15:36 +0000 (11:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/ole/oleutils.h

index afab7f2854375b1a95acbd73ebd5d0b795b542eb..157ec93a447091d6dbe059e9edfb225cc3162f9a 100644 (file)
@@ -134,7 +134,7 @@ private:
   {                                                                           \
     wxLogRelease(_T(#classname), m_cRef);                                     \
                                                                               \
-    if ( --m_cRef == 0 ) {                                                    \
+    if ( --m_cRef == wxAutoULong(0) ) {                                                    \
       delete this;                                                            \
       return 0;                                                               \
     }                                                                         \