From 4840ebf15e51588a3e2f6caf16832ae83ffb9717 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 16 Sep 2021 22:27:32 +1000 Subject: Avoid warning from Xcode. --- src/ViewStyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 4133fcc5f..c375bffab 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -363,7 +363,7 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { // Ensure reasonable values: lines less than 1 pixel high will not work maxAscent = std::max(1.0, maxAscent + extraAscent); maxDescent = std::max(0.0, maxDescent + extraDescent); - lineHeight = lround(maxAscent + maxDescent); + lineHeight = static_cast(std::lround(maxAscent + maxDescent)); lineOverlap = lineHeight / 10; if (lineOverlap < 2) lineOverlap = 2; -- cgit v1.2.3