Skip to content

Commit

Permalink
fix an off-by-two in the previous patch.
Browse files Browse the repository at this point in the history
Swift SVN r30983
  • Loading branch information
lattner committed Aug 4, 2015
1 parent 738ccaf commit 7e31460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Frontend/DiagnosticVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ bool DiagnosticVerifier::verifyFile(unsigned BufferID,

ExpectedFixIt FixIt;
FixIt.StartLoc = StartColStr.data()-2;
FixIt.EndLoc = FixItStr.data()+EndLoc+2;
FixIt.EndLoc = FixItStr.data()+EndLoc;
if (StartColStr.getAsInteger(10, FixIt.StartCol)) {
addError(StartColStr.data(),
"invalid column number in fix-it verification");
Expand Down

0 comments on commit 7e31460

Please sign in to comment.