diff --git a/source/utf8/checked.h b/source/utf8/checked.h index ddf50b3..ff75eb7 100644 --- a/source/utf8/checked.h +++ b/source/utf8/checked.h @@ -210,7 +210,7 @@ namespace utf8 throw invalid_utf16(static_cast(trail_surrogate)); } else - throw invalid_utf16(static_cast(*start)); + throw invalid_utf16(static_cast(cp)); } // Lone trail surrogate