Fix check in assert in wxULongLong::ToULong().
We can convert values up to ULONG_MAX to unsigned long losslessly, not up to LONG_MAX. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c92e136d9a
commit
ebbbd51bbc
1 changed files with 1 additions and 1 deletions
|
|
@ -404,7 +404,7 @@ public:
|
|||
// convert to ulong with range checking in debug mode (only!)
|
||||
unsigned long ToULong() const
|
||||
{
|
||||
wxASSERT_MSG( m_ll <= LONG_MAX,
|
||||
wxASSERT_MSG( m_ll <= ULONG_MAX,
|
||||
wxT("wxULongLong to long conversion loss of precision") );
|
||||
|
||||
return wx_truncate_cast(unsigned long, m_ll);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue