From 1cf755b51cc643240f60131a8fac5e990cfa5e9f Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 25 Mar 2019 11:00:39 +1100 Subject: Use generic versions of ceil, floor, round, lround, trunc from . --- src/PositionCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PositionCache.cxx') diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index aeb8d8bcf..65c90dd1d 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -348,7 +348,7 @@ XYPOSITION ScreenLine::RepresentationWidth(size_t position) const { } XYPOSITION ScreenLine::TabPositionAfter(XYPOSITION xPosition) const { - return (floor((xPosition + TabWidthMinimumPixels()) / TabWidth()) + 1) * TabWidth(); + return (std::floor((xPosition + TabWidthMinimumPixels()) / TabWidth()) + 1) * TabWidth(); } LineLayoutCache::LineLayoutCache() : -- cgit v1.2.3