From b4300bf40c1134231af48cab4f38c5394976d9a1 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 Apr 2025 14:52:19 +1100 Subject: Turn on type conversion warnings for GCC and fix them. --- src/Selection.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Selection.cxx') diff --git a/src/Selection.cxx b/src/Selection.cxx index 0de60a958..795570ee2 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -96,6 +96,10 @@ bool SelectionPosition::operator >=(const SelectionPosition &other) const noexce return *this > other; } +double SelectionPosition::VirtualSpaceWidth(double spaceWidth) const noexcept { + return static_cast(virtualSpace) * spaceWidth; +} + std::string SelectionPosition::ToString() const { std::string result = std::to_string(position); if (virtualSpace) { -- cgit v1.2.3