diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-17 17:43:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-17 17:43:01 +0000 |
commit | 2012d5e33ffa601eb1c58f6830017dce1a1774b3 (patch) | |
tree | 4aa2495fb0b09f0fea0253452069b367178b75ce /lib | |
parent | ef35ff066c8c301acd10db3daa263e119528b260 (diff) | |
download | external_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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 2 |
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': |