From 23992c2e77494d1a715d848c8052d6717e6ec266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Mon, 5 Oct 2020 18:56:26 +0200 Subject: [PATCH] Fix implicit conversion loss warning in wx/math.h --- 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 241c3841ea..8c39bb2aa5 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -68,7 +68,7 @@ wxASSERT_MSG(x > (double)INT_MIN - 0.5 && x < (double)INT_MAX + 0.5, wxT("argument out of supported range")); - return std::lround(x); + return (int)std::lround(x); } #else /* C++98 */