aboutsummaryrefslogtreecommitdiff
path: root/src/lib_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib_io.c')
-rw-r--r--src/lib_io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib_io.c b/src/lib_io.c
index 2aa83474..501de568 100644
--- a/src/lib_io.c
+++ b/src/lib_io.c
@@ -232,9 +232,8 @@ 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[STRFMT_MAXBUF_NUM];
236 MSize len; 235 MSize len;
237 const char *p = lj_strfmt_wstrnum(buf, tv, &len); 236 const char *p = lj_strfmt_wstrnum(L, tv, &len);
238 if (!p) 237 if (!p)
239 lj_err_argt(L, (int)(tv - L->base) + 1, LUA_TSTRING); 238 lj_err_argt(L, (int)(tv - L->base) + 1, LUA_TSTRING);
240 status = status && (fwrite(p, 1, len, fp) == len); 239 status = status && (fwrite(p, 1, len, fp) == len);