1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-06-11 02:46:05 +02:00

- Minor optimization

This commit is contained in:
Jonas Tärnström 2011-04-06 12:43:52 +02:00
parent ef57e799b2
commit 7ea8664576
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -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;