aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2021-09-16 22:27:32 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2021-09-16 22:27:32 +1000
commit4840ebf15e51588a3e2f6caf16832ae83ffb9717 (patch)
treecbdab595a2e0ad8ac1b9265aeb7084628dc04789
parent913129e5a13a97ada15c5d8fd20e7f7404026ed5 (diff)
downloadscintilla-mirror-4840ebf15e51588a3e2f6caf16832ae83ffb9717.tar.gz
Avoid warning from Xcode.
-rw-r--r--src/ViewStyle.cxx2
1 files changed, 1 insertions, 1 deletions
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<int>(std::lround(maxAscent + maxDescent));
lineOverlap = lineHeight / 10;
if (lineOverlap < 2)
lineOverlap = 2;