From 810964f8e6b80fbfdb7f96b9a084acc4cbe5a3a1 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 28 Sep 2021 12:08:09 +1000 Subject: Widen styleNumber in PositionCacheEntry from 8 to 16 bits to allow styles larger than 255 to be represented. Before this, it may have been possible but extremely rare for a cache entry to wrongly match a styled lexeme and produce incorrect layout. Using uint16_t from cstdint instead of a bit field as tools perform more checking on that. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 1559ece96..06d96134f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7,6 +7,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3