forked from OSchip/llvm-project
Cast to remove the narrowing conversion error in c++11.
llvm-svn: 173978
This commit is contained in:
parent
a495930c1d
commit
ff65cbac7f
|
@ -744,8 +744,8 @@ FormatDiagnostic(const char *DiagStr, const char *DiagEnd,
|
|||
const char *Pipe = ScanFormat(Argument, Argument + ArgumentLen, '|');
|
||||
const char *FirstDollar = ScanFormat(Argument, Pipe, '$');
|
||||
const char *SecondDollar = ScanFormat(FirstDollar + 1, Pipe, '$');
|
||||
const char ArgStr1[] = { '%', '0' + ArgNo };
|
||||
const char ArgStr2[] = { '%', '0' + ArgNo2 };
|
||||
const char ArgStr1[] = { '%', (char)('0' + ArgNo) };
|
||||
const char ArgStr2[] = { '%', (char)('0' + ArgNo2) };
|
||||
FormatDiagnostic(Argument, FirstDollar, OutStr);
|
||||
FormatDiagnostic(ArgStr1, ArgStr1 + 2, OutStr);
|
||||
FormatDiagnostic(FirstDollar + 1, SecondDollar, OutStr);
|
||||
|
|
Loading…
Reference in New Issue