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. --- qt/ScintillaEditBase/ScintillaQt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt') diff --git a/qt/ScintillaEditBase/ScintillaQt.h b/qt/ScintillaEditBase/ScintillaQt.h index a4b59e03c..df4c653cd 100644 --- a/qt/ScintillaEditBase/ScintillaQt.h +++ b/qt/ScintillaEditBase/ScintillaQt.h @@ -13,6 +13,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3