mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-06 04:00:25 +08:00
diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error when printing the caret character.
gcc/ChangeLog 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org> * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error when printing the caret character. From-SVN: r223446
This commit is contained in:
parent
db7ffcabaf
commit
e4129dd0c9
@ -1,3 +1,8 @@
|
||||
2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||
|
||||
* diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
|
||||
when printing the caret character.
|
||||
|
||||
2015-05-20 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
* cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
|
||||
|
@ -420,7 +420,8 @@ diagnostic_print_caret_line (diagnostic_context * context,
|
||||
int caret_min = cmin == xloc1.column ? caret1 : caret2;
|
||||
int caret_max = cmin == xloc1.column ? caret2 : caret1;
|
||||
|
||||
pp_space (context->printer);
|
||||
/* cmin is >= 1, but we indent with an extra space at the start like
|
||||
we did above. */
|
||||
int i;
|
||||
for (i = 0; i < cmin; i++)
|
||||
pp_space (context->printer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user