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:
Vadim Zeitlin
2007-04-30 16:23:17 +00:00
parent ed650677e1
commit f11af09331

View File

@@ -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