diff --git a/include/fmt/format.h b/include/fmt/format.h index 6c2831e0..c4780832 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1345,9 +1345,8 @@ template class to_utf8 { buf.append(string_view("\xEF\xBF\xBD")); --p; continue; - } else { - c = (c << 10) + static_cast(*p) - 0x35fdc00; } + c = (c << 10) + static_cast(*p) - 0x35fdc00; } if (c < 0x80) { buf.push_back(static_cast(c));