mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-06-08 12:16:09 +02:00
Added 2 bytes to the string reservation macro to guaranteed to able to hold the quotes
This commit is contained in:
parent
4073babe2c
commit
4e4dc5e4cc
|
@ -63,7 +63,7 @@ or UTF-16 surrogate pairs
|
|||
|
||||
4 * 6 => 24 bytes (12 bytes required)
|
||||
*/
|
||||
#define RESERVE_STRING(_len) ((_len) * 6)
|
||||
#define RESERVE_STRING(_len) (2 + ((_len) * 6))
|
||||
|
||||
static const double g_pow10[] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, 100000000000, 1000000000000, 10000000000000, 100000000000000, 1000000000000000};
|
||||
static const char g_hexChars[] = "0123456789abcdef";
|
||||
|
|
|
@ -35,4 +35,4 @@ http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
|
|||
* Copyright (c) 1994 Sun Microsystems, Inc.
|
||||
*/
|
||||
|
||||
#define UJSON_VERSION "1.32"
|
||||
#define UJSON_VERSION "1.33"
|
||||
|
|
Loading…
Reference in New Issue