diff options
Diffstat (limited to 'lexlib/CharacterCategory.cxx')
-rw-r--r-- | lexlib/CharacterCategory.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lexlib/CharacterCategory.cxx b/lexlib/CharacterCategory.cxx index a83776028..765469a3f 100644 --- a/lexlib/CharacterCategory.cxx +++ b/lexlib/CharacterCategory.cxx @@ -9,6 +9,7 @@ #include <algorithm> +#include "StringCopy.h" #include "CharacterCategory.h" #ifdef SCI_NAMESPACE @@ -3275,7 +3276,7 @@ const int catRanges[] = { const int maxUnicode = 0x10ffff; const int maskCategory = 0x1F; -const int nRanges = sizeof(catRanges) / sizeof(catRanges[0]); +const int nRanges = ELEMENTS(catRanges); } |