diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.8 1998/01/09 15:09:53 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.9 1998/03/06 16:54:42 roberto Exp roberto $ |
3 | ** Auxiliar functions for building Lua libraries | 3 | ** Auxiliar functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -35,7 +35,7 @@ char *luaL_check_lstr (int numArg, long *len) | |||
35 | { | 35 | { |
36 | lua_Object o = lua_getparam(numArg); | 36 | lua_Object o = lua_getparam(numArg); |
37 | luaL_arg_check(lua_isstring(o), numArg, "string expected"); | 37 | luaL_arg_check(lua_isstring(o), numArg, "string expected"); |
38 | if (len) *len = lua_getstrlen(o); | 38 | if (len) *len = lua_strlen(o); |
39 | return lua_getstring(o); | 39 | return lua_getstring(o); |
40 | } | 40 | } |
41 | 41 | ||