Use lround() for non-C++11 wxRound(), as with C++11 version

This commit is contained in:
Paul Cornett 2020-10-14 11:42:45 -07:00
parent b5a554b9a6
commit 55992cc9e1

View File

@ -118,7 +118,7 @@
wxT("argument out of supported range"));
#if defined(HAVE_ROUND) || wxCHECK_VISUALC_VERSION(14)
return int(round(x));
return int(lround(x));
#else
return (int)(x < 0 ? x - 0.5 : x + 0.5);
#endif