diff options
author | Mike Pall <mike> | 2016-02-26 17:59:43 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2016-02-26 18:03:08 +0100 |
commit | 18f6aa97fd93df8e9964c2d22f20f16e6b71b72b (patch) | |
tree | fad1176f6c01dc1aaf36bafa0b73f22b8e1c37e4 /src/lj_buf.c | |
parent | 339a1fd69611e2fd084127ee11a36e57035639d1 (diff) | |
download | luajit-18f6aa97fd93df8e9964c2d22f20f16e6b71b72b.tar.gz luajit-18f6aa97fd93df8e9964c2d22f20f16e6b71b72b.tar.bz2 luajit-18f6aa97fd93df8e9964c2d22f20f16e6b71b72b.zip |
Use internal implementation for converting FP numbers to strings.
Contributed by Peter Cawley.
Diffstat (limited to 'src/lj_buf.c')
-rw-r--r-- | src/lj_buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_buf.c b/src/lj_buf.c index 023bb9aa..7b6c2188 100644 --- a/src/lj_buf.c +++ b/src/lj_buf.c | |||
@@ -186,7 +186,7 @@ SBuf *lj_buf_puttab(SBuf *sb, GCtab *t, GCstr *sep, int32_t i, int32_t e) | |||
186 | } else if (tvisint(o)) { | 186 | } else if (tvisint(o)) { |
187 | p = lj_strfmt_wint(lj_buf_more(sb, STRFMT_MAXBUF_INT+seplen), intV(o)); | 187 | p = lj_strfmt_wint(lj_buf_more(sb, STRFMT_MAXBUF_INT+seplen), intV(o)); |
188 | } else if (tvisnum(o)) { | 188 | } else if (tvisnum(o)) { |
189 | p = lj_strfmt_wnum(lj_buf_more(sb, STRFMT_MAXBUF_NUM+seplen), o); | 189 | p = lj_buf_more(lj_strfmt_putfnum(sb, STRFMT_G14, numV(o)), seplen); |
190 | } else { | 190 | } else { |
191 | goto badtype; | 191 | goto badtype; |
192 | } | 192 | } |