git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73005
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// increase the size twice, unless we're already too big or unless
// more is requested
//
// 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
const size_type increment = m_size > 0
? m_size < ALLOC_MAX_SIZE
? m_size
+ : (size_type)ALLOC_MAX_SIZE
: (size_type)ALLOC_INITIAL_SIZE;
if ( m_capacity + increment > n )
n = m_capacity + increment;
: (size_type)ALLOC_INITIAL_SIZE;
if ( m_capacity + increment > n )
n = m_capacity + increment;