diff options
Diffstat (limited to '')
-rw-r--r-- | liolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -667,7 +667,7 @@ static int g_write (lua_State *L, FILE *f, int arg) { | |||
667 | for (; nargs--; arg++) { | 667 | for (; nargs--; arg++) { |
668 | char buff[LUA_N2SBUFFSZ]; | 668 | char buff[LUA_N2SBUFFSZ]; |
669 | const char *s; | 669 | const char *s; |
670 | size_t len = lua_numbertostrbuff(L, arg, buff); /* try as a number */ | 670 | size_t len = lua_numbertocstring(L, arg, buff); /* try as a number */ |
671 | if (len > 0) { /* did conversion work (value was a number)? */ | 671 | if (len > 0) { /* did conversion work (value was a number)? */ |
672 | s = buff; | 672 | s = buff; |
673 | len--; | 673 | len--; |