From 55992cc9e1bf78999fd6535fd23924d62dcd3e5d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 14 Oct 2020 11:42:45 -0700 Subject: [PATCH] Use lround() for non-C++11 wxRound(), as with C++11 version --- include/wx/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/math.h b/include/wx/math.h index 8c39bb2aa5..05d3f7bd53 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -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