aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-17 17:43:01 +0000
committerChris Lattner <sabre@nondot.org>2002-04-17 17:43:01 +0000
commit2012d5e33ffa601eb1c58f6830017dce1a1774b3 (patch)
tree4aa2495fb0b09f0fea0253452069b367178b75ce
parentef35ff066c8c301acd10db3daa263e119528b260 (diff)
downloadexternal_llvm-2012d5e33ffa601eb1c58f6830017dce1a1774b3.zip
external_llvm-2012d5e33ffa601eb1c58f6830017dce1a1774b3.tar.gz
external_llvm-2012d5e33ffa601eb1c58f6830017dce1a1774b3.tar.bz2
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
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
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<GenericValue> &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':