commit | 2012d5e33ffa601eb1c58f6830017dce1a1774b3 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Apr 17 17:43:01 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Apr 17 17:43:01 2002 +0000 |
tree | 4aa2495fb0b09f0fea0253452069b367178b75ce | |
parent | ef35ff066c8c301acd10db3daa263e119528b260 [diff] [blame] |
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
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 @@ 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':