mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Cast added to 'add_history'
MacOS defines 'add_history' with a "wrong" type (it returns 'int' instead of 'void').
This commit is contained in:
parent
270a58c062
commit
f6c627af20
1 changed files with 2 additions and 2 deletions
4
lua.c
4
lua.c
|
|
@ -488,8 +488,8 @@ static void lua_freeline (char *line) {
|
|||
static void lua_initreadline(lua_State *L) {
|
||||
UNUSED(L);
|
||||
rl_readline_name = "lua";
|
||||
l_readline = readline;
|
||||
l_addhist = add_history;
|
||||
l_readline = cast(l_readlineT, readline);
|
||||
l_addhist = cast(l_addhistT, add_history);
|
||||
}
|
||||
|
||||
#elif defined(LUA_USE_DLOPEN) && defined(LUA_READLINELIB) /* }{ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue