diff --git a/peglib.h b/peglib.h index 63e17a7..260d45d 100644 --- a/peglib.h +++ b/peglib.h @@ -3320,8 +3320,8 @@ class ParserGenerator { } #if defined(__cpp_lib_char8_t) - static bool parse_test(const char8_t *d, const char8_t *s) { - reutnr parse_test(reinterpret_cast(s), s); + static bool parse_test(const char *d, const char8_t *s) { + return parse_test(d, reinterpret_cast(s)); } #endif