diff options
Diffstat (limited to 'lexlib')
| -rw-r--r-- | lexlib/WordList.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lexlib/WordList.cxx b/lexlib/WordList.cxx index f65b5ed48..425bcc01a 100644 --- a/lexlib/WordList.cxx +++ b/lexlib/WordList.cxx @@ -10,6 +10,7 @@  #include <cstring>  #include <algorithm> +#include <iterator>  #include "StringCopy.h"  #include "WordList.h" @@ -128,7 +129,7 @@ void WordList::Set(const char *s) {  #else  	SortWordList(words, len);  #endif -	std::fill(starts, starts + ELEMENTS(starts), -1); +	std::fill(starts, std::end(starts), -1);  	for (int l = len - 1; l >= 0; l--) {  		unsigned char indexChar = words[l][0];  		starts[indexChar] = l;  | 
