From 2012d5e33ffa601eb1c58f6830017dce1a1774b3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 17 Apr 2002 17:43:01 +0000 Subject: Fix a bug printing out %c formated characters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2277 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 8f486e8..5bc46fa 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -336,7 +336,7 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector &Args) { case '%': sprintf(Buffer, FmtBuf); break; case 'c': - sprintf(Buffer, FmtBuf, Args[ArgNo++].SByteVal); break; + sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal); break; case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': -- cgit v1.1