aboutsummaryrefslogtreecommitdiff
path: root/src/lib_io.c
diff options
context:
space:
mode:
authorMike Pall <mike>2013-05-13 10:15:07 +0200
committerMike Pall <mike>2013-05-13 10:15:07 +0200
commit8f90a1279e125a8cb9727751f76fb75214208f89 (patch)
treeb65706b5b10231780735fcf80966e14f616f39b7 /src/lib_io.c
parent625ffca739a703906fbc321ef9405514d72480fe (diff)
downloadluajit-8f90a1279e125a8cb9727751f76fb75214208f89.tar.gz
luajit-8f90a1279e125a8cb9727751f76fb75214208f89.tar.bz2
luajit-8f90a1279e125a8cb9727751f76fb75214208f89.zip
Big renaming of string buffer/formatting/conversion functions.
Diffstat (limited to 'src/lib_io.c')
-rw-r--r--src/lib_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_io.c b/src/lib_io.c
index cae56579..ca87ec4d 100644
--- a/src/lib_io.c
+++ b/src/lib_io.c
@@ -232,9 +232,9 @@ static int io_file_write(lua_State *L, FILE *fp, int start)
232 cTValue *tv; 232 cTValue *tv;
233 int status = 1; 233 int status = 1;
234 for (tv = L->base+start; tv < L->top; tv++) { 234 for (tv = L->base+start; tv < L->top; tv++) {
235 char buf[LJ_STR_NUMBERBUF]; 235 char buf[STRFMT_MAXBUF_NUM];
236 MSize len; 236 MSize len;
237 const char *p = lj_str_buftv(buf, tv, &len); 237 const char *p = lj_strfmt_wstrnum(buf, tv, &len);
238 if (!p) 238 if (!p)
239 lj_err_argt(L, (int)(tv - L->base) + 1, LUA_TSTRING); 239 lj_err_argt(L, (int)(tv - L->base) + 1, LUA_TSTRING);
240 status = status && (fwrite(p, 1, len, fp) == len); 240 status = status && (fwrite(p, 1, len, fp) == len);