diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-21 23:04:57 +0000 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-21 23:04:57 +0000 |
commit | 7ccb74055fd37f22de83e4fbe42c146b6dd5656d (patch) | |
tree | 81bf75571aaab38c773bfb9b473466ea95ef1feb /src/CellBuffer.cxx | |
parent | 26df8def5e3ad506c514a42262d98584011d5446 (diff) | |
download | scintilla-mirror-sciteco-rel-5-5-4.tar.gz |
support NetBSD on ARMv6sciteco-rel-5-5-4
* LineVector<T> is only instantiated for Sci::Position.
It instantiates Partitioning<T> as well and Partitioning<T>::InsertPartitions()
is called with a Sci::Position.
This only couldn't cause problems if ptrdiff_t aliases to int.
In either case, I don't see why we need LineVector<int> at all.
* We need RunStyles<ptrdiff_t> as well since ptrdiff_t is long int
and we instantiate only RunStyles<int>.
Both types have the same storage size but are still different.
See also this discussion about the same workaround for Haiku:
https://groups.google.com/g/scintilla-interest/c/xPXquJUIXo8/m/BLXBpTTgBwAJ
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 643929352..3bdbd7730 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -338,10 +338,7 @@ CellBuffer::CellBuffer(bool hasStyles_, bool largeDocument_) : utf8LineEnds = LineEndType::Default; collectingUndo = true; uh = std::make_unique<UndoHistory>(); - if (largeDocument) - plv = std::make_unique<LineVector<Sci::Position>>(); - else - plv = std::make_unique<LineVector<int>>(); + plv = std::make_unique<LineVector<Sci::Position>>(); } CellBuffer::~CellBuffer() noexcept = default; |