diff options
| author | Thibault Charbonnier <thibaultcha@me.com> | 2016-02-26 15:37:38 -0800 |
|---|---|---|
| committer | Thibault Charbonnier <thibaultcha@me.com> | 2016-02-26 15:38:45 -0800 |
| commit | 9136fd54b2d1a9a430b263b1903f895f66c2163c (patch) | |
| tree | e00993b2a1ee759b2a6108dbc36d06203d627365 | |
| parent | f79aa68af865ae84b36c7e794beedd87fef2ed54 (diff) | |
| download | lua-cjson-9136fd54b2d1a9a430b263b1903f895f66c2163c.tar.gz lua-cjson-9136fd54b2d1a9a430b263b1903f895f66c2163c.tar.bz2 lua-cjson-9136fd54b2d1a9a430b263b1903f895f66c2163c.zip | |
fix 16 decimal number encoding assertion
| -rw-r--r-- | fpconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |
