Re: [obvious fix] fix off-by-one error when printing the caret character

2015-05-21 Thread Dodji Seketeli
Manuel López-Ibáñez writes: > Index: ChangeLog > === > --- ChangeLog (revision 223445) > +++ ChangeLog (working copy) > @@ -1,3 +1,8 @@ > +2015-05-20 Manuel López-Ibáñez > + > + * diagnostic.c (diagnostic_print_caret_li

[obvious fix] fix off-by-one error when printing the caret character

2015-05-20 Thread Manuel López-Ibáñez
It seems I made an off-by-one error in my last patch for multiple locations. This only affected the position of the caret character, which we don't test (since the testsuite uses -fno-diagnostics-show-caret). Fixed thusly and added a comment to remind me and others that locations start at 1, but we