Use lround() for non-C++11 wxRound(), as with C++11 version
This commit is contained in:
parent
b5a554b9a6
commit
55992cc9e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user