aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Charbonnier <thibaultcha@me.com>2016-02-26 15:37:38 -0800
committerThibault Charbonnier <thibaultcha@me.com>2016-02-26 15:38:45 -0800
commit9136fd54b2d1a9a430b263b1903f895f66c2163c (patch)
treee00993b2a1ee759b2a6108dbc36d06203d627365
parentf79aa68af865ae84b36c7e794beedd87fef2ed54 (diff)
downloadlua-cjson-9136fd54b2d1a9a430b263b1903f895f66c2163c.tar.gz
lua-cjson-9136fd54b2d1a9a430b263b1903f895f66c2163c.tar.bz2
lua-cjson-9136fd54b2d1a9a430b263b1903f895f66c2163c.zip
fix 16 decimal number encoding assertion
-rw-r--r--fpconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpconv.c b/fpconv.c
index 7990831..854662c 100644
--- a/fpconv.c
+++ b/fpconv.c
@@ -154,7 +154,7 @@ static void set_number_format(char *fmt, int precision)
154{ 154{
155 int d1, d2, i; 155 int d1, d2, i;
156 156
157 assert(1 <= precision && precision <= 14); 157 assert(1 <= precision && precision <= 16);
158 158
159 /* Create printf format (%.14g) from precision */ 159 /* Create printf format (%.14g) from precision */
160 d1 = precision / 10; 160 d1 = precision / 10;