diff options
Diffstat (limited to 'loadlib.c')
| -rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.75 2010/01/11 17:06:31 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.76 2010/01/11 17:11:24 roberto Exp roberto $ |
| 3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | ** | 5 | ** |
| @@ -113,7 +113,7 @@ static void *ll_load (lua_State *L, const char *path, int seeglb) { | |||
| 113 | 113 | ||
| 114 | 114 | ||
| 115 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { | 115 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { |
| 116 | lua_CFunction f = (lua_CFunction)dlsym(lib, sym); | 116 | lua_CFunction f = (lua_CFunction)(unsigned long)dlsym(lib, sym); |
| 117 | if (f == NULL) lua_pushstring(L, dlerror()); | 117 | if (f == NULL) lua_pushstring(L, dlerror()); |
| 118 | return f; | 118 | return f; |
| 119 | } | 119 | } |
