diff --git a/source/utf8/core.h b/source/utf8/core.h index 5a55f06..b4d4a1c 100644 --- a/source/utf8/core.h +++ b/source/utf8/core.h @@ -112,7 +112,8 @@ namespace internal return 0; } - inline bool is_overlong_sequence(uint32_t cp, int length) + template + inline bool is_overlong_sequence(uint32_t cp, octet_difference_type length) { if (cp < 0x80) { if (length != 1)