summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2014-06-20 19:17:28 -0700
committerCarl Worth <[email protected]>2014-07-29 15:11:49 -0700
commit8e8f8ff1b25a4cfd332d9e7c86d3d56cdff98d6a (patch)
tree526c4d0343aadc30dfd9d283b8caabff9c34422d /src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
parent0742e0acd302d90dd7f326cf641da61ac60a8508 (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/126-garbage-after-directive.c.expected')
-rw-r--r--src/glsl/glcpp/tests/126-garbage-after-directive.c.expected2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected b/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
index 283963db5cf..82a06f8a3b3 100644
--- a/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
+++ b/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
@@ -1,4 +1,4 @@
-0:1(15): preprocessor error: extra tokens at end of directive
+0:1(14): preprocessor error: extra tokens at end of directive
0:4(14): preprocessor error: extra tokens at end of directive