diff options
author | Carl Worth <[email protected]> | 2014-06-20 19:17:28 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2014-07-29 15:11:49 -0700 |
commit | 8e8f8ff1b25a4cfd332d9e7c86d3d56cdff98d6a (patch) | |
tree | 526c4d0343aadc30dfd9d283b8caabff9c34422d /src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected | |
parent | 0742e0acd302d90dd7f326cf641da61ac60a8508 (diff) |
glsl/glcpp: Fix off-by-one error in column in first-line error messages
For the first line we were initializing the column to 1, but for all
subsequent lines we were initializing the column to 0. The column number is
advanced for each token read before any error message is printed. So the 0
value is the correct initialization, (so that the first column is reported as
column 1).
With this extremely minor change, many of the .expected files are updated such
that error messages for the first line now have the correct column number in
them.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected')
-rw-r--r-- | src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected b/src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected index 506eb561756..d186f48761f 100644 --- a/src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected +++ b/src/glsl/glcpp/tests/133-eof-without-newline-comment.c.expected @@ -1,2 +1,2 @@ -0:1(52): preprocessor error: Unterminated comment +0:1(51): preprocessor error: Unterminated comment This file ends with no newline within a comment |