diff --git a/Header.pas b/Header.pas index d2ac9af..7b51013 100644 --- a/Header.pas +++ b/Header.pas @@ -1456,7 +1456,7 @@ var end; p_line: begin - lineNumber := ReadLong; + lineNumber := ReadLong - 1; lsPtr := ReadLongString; sourceFileGS.theString.size := lsPtr^.length; for i := 1 to sourceFileGS.theString.size do diff --git a/cc.notes b/cc.notes index d19b44a..5616d8d 100644 --- a/cc.notes +++ b/cc.notes @@ -1942,6 +1942,8 @@ int foo(int[42]); 213. If a floating-point constant beginning with . had a line continuation between the . and the first digit, a spurious error would be reported. +214. If the #line directive was used, line numbering would be off by one when using a .sym file. + -- Bugs from C 2.1.0 that have been fixed ----------------------------------- 1. In some situations, fread() reread the first 1K or so of the file.