From: Paul Cornett Date: Sat, 24 Nov 2012 21:49:04 +0000 (+0000) Subject: silence GCC warning "enumeral and non-enumeral type in conditional expression" X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/da63066b65c788c2d6ed792a81ec38ba4b5050b9 silence GCC warning "enumeral and non-enumeral type in conditional expression" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/vector.h b/include/wx/vector.h index 74dcbf4080..f2f337fae9 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -241,12 +241,12 @@ public: // increase the size twice, unless we're already too big or unless // more is requested // - // NB: casts to size_type are needed to suppress mingw32 warnings about - // mixing enums and ints in the same expression + // NB: casts to size_type are needed to suppress warnings about + // mixing enumeral and non-enumeral type in conditional expression const size_type increment = m_size > 0 ? m_size < ALLOC_MAX_SIZE ? m_size - : ALLOC_MAX_SIZE + : (size_type)ALLOC_MAX_SIZE : (size_type)ALLOC_INITIAL_SIZE; if ( m_capacity + increment > n ) n = m_capacity + increment;