Use lround() for non-C++11 wxRound(), as with C++11 version
This commit is contained in:
@@ -118,7 +118,7 @@
|
|||||||
wxT("argument out of supported range"));
|
wxT("argument out of supported range"));
|
||||||
|
|
||||||
#if defined(HAVE_ROUND) || wxCHECK_VISUALC_VERSION(14)
|
#if defined(HAVE_ROUND) || wxCHECK_VISUALC_VERSION(14)
|
||||||
return int(round(x));
|
return int(lround(x));
|
||||||
#else
|
#else
|
||||||
return (int)(x < 0 ? x - 0.5 : x + 0.5);
|
return (int)(x < 0 ? x - 0.5 : x + 0.5);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user