aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 61d0b316..60fcf0c6 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.41 2005/05/17 19:49:15 roberto Exp roberto $ 2** $Id: lapi.c,v 2.42 2005/05/31 14:25:18 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -351,7 +351,7 @@ LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
351} 351}
352 352
353 353
354LUA_API size_t lua_objsize (lua_State *L, int idx) { 354LUA_API size_t lua_objlen (lua_State *L, int idx) {
355 StkId o = index2adr(L, idx); 355 StkId o = index2adr(L, idx);
356 switch (ttype(o)) { 356 switch (ttype(o)) {
357 case LUA_TSTRING: return tsvalue(o)->len; 357 case LUA_TSTRING: return tsvalue(o)->len;