diff --git a/source/utf8/checked.h b/source/utf8/checked.h index 8c59c83..3b00644 100644 --- a/source/utf8/checked.h +++ b/source/utf8/checked.h @@ -118,7 +118,7 @@ namespace utf8 utf8::append (replacement, out); ++start; // just one replacement mark for the sequence - while (utf8::internal::is_trail(*start) && start != end) + while (start != end && utf8::internal::is_trail(*start)) ++start; break; }