luaL_tostring -> luaL_tolstring (more generic)

This commit is contained in:
Roberto Ierusalimschy
2008-01-03 15:07:59 -02:00
parent f9cdd09191
commit daddc57abd
3 changed files with 15 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lbaselib.c,v 1.200 2007/10/25 19:31:05 roberto Exp roberto $
** $Id: lbaselib.c,v 1.201 2007/11/28 18:25:17 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -405,7 +405,7 @@ static int luaB_xpcall (lua_State *L) {
static int luaB_tostring (lua_State *L) {
luaL_checkany(L, 1);
luaL_tostring(L, 1);
luaL_tolstring(L, 1, NULL);
return 1;
}