Skip to content

Commit

Permalink
removed redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
tonda-kriz committed Nov 7, 2024
1 parent 27ed1be commit 0fbcb73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion include/spb/json/serialize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ static inline void serialize( ostream & stream, std::string_view key, const spb:
{
if( !value.empty( ) )
{
spb::detail::utf8::validate( std::string_view( value.data( ), value.size( ) ) );
serialize_key( stream, key );
serialize( stream, value );
}
Expand Down
2 changes: 1 addition & 1 deletion include/spb/utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace spb::detail::utf8

constexpr uint8_t ok = 0;

static auto inline decode_point( uint32_t * state, uint32_t * codep, uint32_t byte ) -> uint32_t
static auto inline decode_point( uint32_t * state, uint32_t * codep, uint8_t byte ) -> uint32_t
{
static const uint8_t utf8d[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 00..1f
Expand Down

0 comments on commit 0fbcb73

Please sign in to comment.