From 8e8f8ff1b25a4cfd332d9e7c86d3d56cdff98d6a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 20 Jun 2014 19:17:28 -0700 Subject: 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 --- src/glsl/glcpp/tests/093-divide-by-zero.c.expected | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/glcpp/tests/093-divide-by-zero.c.expected') diff --git a/src/glsl/glcpp/tests/093-divide-by-zero.c.expected b/src/glsl/glcpp/tests/093-divide-by-zero.c.expected index 9adae3f9d55..a858870b794 100644 --- a/src/glsl/glcpp/tests/093-divide-by-zero.c.expected +++ b/src/glsl/glcpp/tests/093-divide-by-zero.c.expected @@ -1,3 +1,3 @@ -0:1(13): preprocessor error: division by 0 in preprocessor directive +0:1(12): preprocessor error: division by 0 in preprocessor directive -- cgit v1.2.3