From a493d638574ac81d3b7c8210b9ff5089d52e65fc Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 8 Oct 2025 19:15:29 +0300 Subject: Revert "support ptrdiff_t if it has the same storage size as int, but does *not* alias it" This reverts commit 0953ffeee80abdd8e79ddacc7066eb02c78968e7. --- src/CellBuffer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 3e9deb934..04486d4c6 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -21,7 +21,6 @@ #include #include #include -#include #include "ScintillaTypes.h" @@ -216,7 +215,7 @@ public: } void InsertLines(Sci::Line line, const Sci::Position *positions, size_t lines, bool lineStart) override { const POS lineAsPos = pos_cast(line); - if constexpr (std::is_convertible_v) { + if constexpr (sizeof(Sci::Position) == sizeof(POS)) { starts.InsertPartitions(lineAsPos, positions, lines); } else { starts.InsertPartitionsWithCast(lineAsPos, positions, lines); -- cgit v1.2.3