aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua_cjson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua_cjson.c b/lua_cjson.c
index b3c816d..0f6d675 100644
--- a/lua_cjson.c
+++ b/lua_cjson.c
@@ -631,7 +631,7 @@ static void json_append_number(lua_State *l, strbuf_t *json, int index,
631 /* Some platforms may print -nan, just hard code it */ 631 /* Some platforms may print -nan, just hard code it */
632 strbuf_append_mem(json, "nan", 3); 632 strbuf_append_mem(json, "nan", 3);
633 } else { 633 } else {
634 /* Lowest double printed with %.14g is 21 characters long: 634 /* Longest double printed with %.14g is 21 characters long:
635 * -1.7976931348623e+308 635 * -1.7976931348623e+308
636 * 636 *
637 * Use 32 to include the \0, and a few extra just in case.. 637 * Use 32 to include the \0, and a few extra just in case..