aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ada/errout.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/errout.adb b/gcc/ada/errout.adb
index c859d8c..0b10d41 100644
--- a/gcc/ada/errout.adb
+++ b/gcc/ada/errout.adb
@@ -2693,9 +2693,7 @@ package body Errout is
Write_Buffer_Char (Buf, Cur_Loc);
end if;
- Cur_Loc := Cur_Loc + 1;
-
- if Buf (Cur_Loc - 1) = ASCII.LF then
+ if Buf (Cur_Loc) = ASCII.LF then
Cur_Line := Cur_Line + 1;
-- Output ... for skipped lines
@@ -2720,6 +2718,8 @@ package body Errout is
Width);
end if;
end if;
+
+ Cur_Loc := Cur_Loc + 1;
end loop;
end;