diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/interactive_shell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp index 7cef623e9..c1d2c2bb1 100644 --- a/src/main/interactive_shell.cpp +++ b/src/main/interactive_shell.cpp @@ -98,7 +98,7 @@ InteractiveShell::InteractiveShell(ExprManager& exprManager, #if READLINE_COMPENTRY_FUNC_RETURNS_CHARP ::rl_completion_entry_function = commandGenerator; #else /* READLINE_COMPENTRY_FUNC_RETURNS_CHARP */ - ::rl_completion_entry_function = (Function) commandGenerator; + ::rl_completion_entry_function = (int (*)(const char*, int)) commandGenerator; #endif /* READLINE_COMPENTRY_FUNC_RETURNS_CHARP */ ::using_history(); |