diff options
author | Neil <nyamatongwe@gmail.com> | 2021-09-28 12:08:09 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-09-28 12:08:09 +1000 |
commit | 810964f8e6b80fbfdb7f96b9a084acc4cbe5a3a1 (patch) | |
tree | ef68c28d8c9f92f328a8f765c77092b849ecdd77 /gtk | |
parent | 2f038d69e4c79d3dfb9979ad28d0c6b0f30e823c (diff) | |
download | scintilla-mirror-810964f8e6b80fbfdb7f96b9a084acc4cbe5a3a1.tar.gz |
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.
Diffstat (limited to 'gtk')
-rwxr-xr-x | gtk/ScintillaGTK.cxx | 1 | ||||
-rw-r--r-- | gtk/ScintillaGTKAccessible.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 92973a083..d1004a3f0 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -5,6 +5,7 @@ #include <cstddef> #include <cstdlib> +#include <cstdint> #include <cassert> #include <cstring> #include <cstdio> diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx index bff9a4572..e3c50e510 100644 --- a/gtk/ScintillaGTKAccessible.cxx +++ b/gtk/ScintillaGTKAccessible.cxx @@ -53,6 +53,7 @@ #include <cstddef> #include <cstdlib> +#include <cstdint> #include <cassert> #include <cstring> |