aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index c2d5effcd..d83505d40 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -458,7 +458,7 @@ void ViewStyle::CalcLargestMarkerHeight() {
}
int ViewStyle::GetFrameWidth() const {
- return Sci::clamp(caretLineFrame, 1, lineHeight / 3);
+ return static_cast<int>(std::clamp(caretLineFrame, 1, lineHeight / 3));
}
bool ViewStyle::IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) const {