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.118 2004/06/29 16:57:56 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.119 2004/07/01 14:26:28 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -63,7 +63,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { | |||
63 | 63 | ||
64 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { | 64 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { |
65 | const char *msg = lua_pushfstring(L, "%s expected, got %s", | 65 | const char *msg = lua_pushfstring(L, "%s expected, got %s", |
66 | tname, lua_typename(L, lua_type(L,narg))); | 66 | tname, luaL_typename(L, narg)); |
67 | return luaL_argerror(L, narg, msg); | 67 | return luaL_argerror(L, narg, msg); |
68 | } | 68 | } |
69 | 69 | ||