[Lldb-commits] [lldb] r204336 - Change the type in va_arg call from char to int.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Thu Mar 20 04:24:44 PDT 2014
Author: abidh
Date: Thu Mar 20 06:24:44 2014
New Revision: 204336
URL: http://llvm.org/viewvc/llvm-project?rev=204336&view=rev
Log:
Change the type in va_arg call from char to int.
It is supposed to take fully promoted types.
Modified:
lldb/trunk/source/Host/windows/EditLineWin.cpp
Modified: lldb/trunk/source/Host/windows/EditLineWin.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/windows/EditLineWin.cpp?rev=204336&r1=204335&r2=204336&view=diff
==============================================================================
--- lldb/trunk/source/Host/windows/EditLineWin.cpp (original)
+++ lldb/trunk/source/Host/windows/EditLineWin.cpp Thu Mar 20 06:24:44 2014
@@ -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);
More information about the lldb-commits
mailing list