From 571861bc7bbe10bf831b861f7e6e0a2aa0a40839 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 11 Oct 2012 00:39:17 +0200 Subject: [PATCH] Return something in utf8::distance, thanks again gcc for letting this work --- src/utf8.hh | 1 + 1 file changed, 1 insertion(+) 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