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.202 2010/03/12 18:59:32 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.203 2010/03/17 21:37:37 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 | */ |
@@ -789,7 +789,7 @@ LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver) { | |||
789 | LUALIB_API int luaL_cpcall (lua_State *L, lua_CFunction f, int nargs, | 789 | LUALIB_API int luaL_cpcall (lua_State *L, lua_CFunction f, int nargs, |
790 | int nresults) { | 790 | int nresults) { |
791 | nargs++; /* to include function itself */ | 791 | nargs++; /* to include function itself */ |
792 | lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_CPCALL); | 792 | lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_CCALL); |
793 | lua_insert(L, -nargs); | 793 | lua_insert(L, -nargs); |
794 | lua_pushlightuserdata(L, &f); | 794 | lua_pushlightuserdata(L, &f); |
795 | lua_insert(L, -nargs); | 795 | lua_insert(L, -nargs); |