Fix a lifetime issue.

This commit is contained in:
Victor Zverovich
2012-12-11 10:27:13 -08:00
parent b1e4cbb023
commit 4db5a66455
2 changed files with 71 additions and 97 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ void fmt::Formatter::Format() {
unsigned arg_index = ParseUInt(s);
if (arg_index >= args_.size())
ReportError(s, "argument index is out of range in format");
const Arg &arg = args_[arg_index];
const Arg &arg = *args_[arg_index];
unsigned flags = 0;
int width = 0;