diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-03 07:42:54 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-03 07:42:54 +1000 |
commit | e680914ac0baa9285554ed574ec6ca6d7686346a (patch) | |
tree | 85ffd6606c7b4a5e5044a87b39114e1745906a21 /src/ViewStyle.cxx | |
parent | 9a39909a6e03fc2fcddc06a3e4a1fedf9999346c (diff) | |
download | scintilla-mirror-e680914ac0baa9285554ed574ec6ca6d7686346a.tar.gz |
Specify type of std::clamp to avoid casting arguments.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 76f33fa44..1e9d6d5a3 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -458,7 +458,7 @@ void ViewStyle::CalcLargestMarkerHeight() { } int ViewStyle::GetFrameWidth() const { - return static_cast<int>(std::clamp(caretLineFrame, 1, lineHeight / 3)); + return std::clamp(caretLineFrame, 1, lineHeight / 3); } bool ViewStyle::IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) const { |