ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/XS.xs
(Generate patch)

Comparing JSON-XS/XS.xs (file contents):
Revision 1.140 by root, Fri Apr 19 17:09:51 2019 UTC vs.
Revision 1.143 by root, Mon Jun 21 01:04:30 2021 UTC

918 if (SvIsUV (sv) ? SvUVX (sv) <= 59000 918 if (SvIsUV (sv) ? SvUVX (sv) <= 59000
919 : SvIVX (sv) <= 59000 && SvIVX (sv) >= -59000) 919 : SvIVX (sv) <= 59000 && SvIVX (sv) >= -59000)
920 { 920 {
921 // optimise the "small number case" 921 // optimise the "small number case"
922 // code will likely be branchless and use only a single multiplication 922 // code will likely be branchless and use only a single multiplication
923 // works for numbers up to 59074 923 // 4.28 works for numbers up to 59074
924 I32 i = SvIVX (sv); 924 I32 i = SvIVX (sv);
925 U32 u; 925 U32 u;
926 char digit, nz = 0; 926 char digit, nz = 0;
927 927
928 need (enc, 6); 928 need (enc, 6);
1038 else 1038 else
1039 break; 1039 break;
1040 } 1040 }
1041 else if (ch != 0x20 && ch != 0x0a && ch != 0x0d && ch != 0x09) 1041 else if (ch != 0x20 && ch != 0x0a && ch != 0x0d && ch != 0x09)
1042 break; // parse error, but let higher level handle it, gives better error messages 1042 break; // parse error, but let higher level handle it, gives better error messages
1043 1043 else
1044 ++dec->cur; 1044 ++dec->cur;
1045 } 1045 }
1046} 1046}
1047 1047
1048#define ERR(reason) SB dec->err = reason; goto fail; SE 1048#define ERR(reason) SB dec->err = reason; goto fail; SE
1049 1049

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines