diff options
author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2014-03-20 11:24:44 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2014-03-20 11:24:44 +0000 |
commit | 10511b2a734da689b789262d902bcfe70e708c80 (patch) | |
tree | f4cf8217f88b93b60f50b5caa1276b815e8a138a /lldb/source/Host/windows/EditLineWin.cpp | |
parent | 7aafd31dad31314754930c0684850f742eeb70e4 (diff) | |
download | bcm5719-llvm-10511b2a734da689b789262d902bcfe70e708c80.tar.gz bcm5719-llvm-10511b2a734da689b789262d902bcfe70e708c80.zip |
Change the type in va_arg call from char to int.
It is supposed to take fully promoted types.
llvm-svn: 204336
Diffstat (limited to 'lldb/source/Host/windows/EditLineWin.cpp')
-rw-r--r-- | lldb/source/Host/windows/EditLineWin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/windows/EditLineWin.cpp b/lldb/source/Host/windows/EditLineWin.cpp index 381bf805067..6bd7e161cd0 100644 --- a/lldb/source/Host/windows/EditLineWin.cpp +++ b/lldb/source/Host/windows/EditLineWin.cpp @@ -247,7 +247,7 @@ el_set (EditLine *el, int code, ...) // get the function pointer from the arg list void *func_vp = (void*)va_arg(vl, el_prompt_func); - char escape = (char)va_arg(vl, char); + char escape = (char)va_arg(vl, int); // call to get the prompt as a string el_prompt_func func_fp = (el_prompt_func)func_vp; const char *newPrompt = func_fp(el); |