mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-06-11 02:46:05 +02:00
- Minor optimization
This commit is contained in:
parent
ef57e799b2
commit
7ea8664576
Binary file not shown.
|
@ -535,6 +535,10 @@ FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds)
|
|||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
*(escOffset++) = (wchar_t) (*inputOffset++);
|
||||
break;
|
||||
|
||||
default:
|
||||
{
|
||||
JSUTF32 ucs = 0;
|
||||
|
@ -542,10 +546,6 @@ FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string ( struct DecoderState *ds)
|
|||
// Get leading byte right
|
||||
switch (utfLen)
|
||||
{
|
||||
case 1:
|
||||
*(escOffset++) = (wchar_t) (*inputOffset++);
|
||||
continue;
|
||||
|
||||
case 2:
|
||||
ucs |= (*inputOffset++) & 0x1f;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue