diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-11 00:39:17 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-11 00:39:17 +0200 |
| commit | 571861bc7bbe10bf831b861f7e6e0a2aa0a40839 (patch) | |
| tree | 0fea9209754111abf3977293f39f89be0b85e91e /src/utf8.hh | |
| parent | 561cc72d6cdeaea4c7a448780973923ea1d78f1b (diff) | |
Return something in utf8::distance, thanks again gcc for letting this work
Diffstat (limited to 'src/utf8.hh')
| -rw-r--r-- | src/utf8.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utf8.hh b/src/utf8.hh index 93b7cc65..057f1d59 100644 --- a/src/utf8.hh +++ b/src/utf8.hh @@ -68,6 +68,7 @@ size_t distance(Iterator begin, Iterator end) if ((*begin++ & 0xC0) != 0x80) ++dist; } + return dist; } // return true if it points to the first byte of a (either single or |
