X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e70f5e1301456e02668807d3795a5f2912c2ea86..0ce742cf092c9244f27957e308c16f3c2631042d:/include/wx/dynarray.h diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index 34aaff0a2b..caf4b814d1 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -177,7 +177,7 @@ public: \ { \ size_t type = sizeof(T); \ size_t sizelong = sizeof(long); \ - if ( type <= sizelong ) \ + if ( type > sizelong ) \ { wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \ } \ \ @@ -239,7 +239,7 @@ public: \ name(SCMPFUNC##T fn) \ { size_t type = sizeof(T); \ size_t sizelong = sizeof(long); \ - if ( type <= sizelong ) \ + if ( type > sizelong ) \ { wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \ m_fnCompare = fn; \ } \