summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2016-10-06 17:55:22 +0000
committerEd Maste <emaste@freebsd.org>2016-10-06 17:55:22 +0000
commit9a605f93a7e070b8a4a70043dc21825d9ced1e96 (patch)
treeac83c42a00be9faed82444ebcb414b3cbf325c1d /lldb/source/Interpreter
parentc2ee42cd16213e896947b9e1ee1c30defa006f99 (diff)
downloadbcm5719-llvm-9a605f93a7e070b8a4a70043dc21825d9ced1e96.tar.gz
bcm5719-llvm-9a605f93a7e070b8a4a70043dc21825d9ced1e96.zip
Match printf field width arg and type
A '*' as a field width or precision specifies that the field width or precision is supplied by an int argument. llvm-svn: 283472
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/Args.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index 3e0f4846f1b..20c4dd3b510 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -213,7 +213,7 @@ void Args::Dump(Stream &s, const char *label_name) const {
int i = 0;
for (auto &entry : m_entries) {
s.Indent();
- s.Printf("%s[%zi]=\"%*s\"\n", label_name, i++, entry.ref.size(),
+ s.Printf("%s[%zi]=\"%*s\"\n", label_name, i++, int(entry.ref.size()),
entry.ref.data());
}
s.Printf("%s[%zi]=NULL\n", label_name, i);
OpenPOWER on IntegriCloud