assert that wxRound() argument is in the supported range
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,6 +107,9 @@
|
||||
|
||||
inline int wxRound(double x)
|
||||
{
|
||||
wxASSERT_MSG( x > INT_MIN - 0.5 && x < INT_MAX + 0.5,
|
||||
_T("argument out of supported range") );
|
||||
|
||||
#if defined(HAVE_ROUND)
|
||||
return int(round(x));
|
||||
#else
|
||||
|
Reference in New Issue
Block a user