]> git.saurik.com Git - bison.git/blobdiff - tests/local.at
tests: fix locations in C
[bison.git] / tests / local.at
index b0ec647f8d07b9aef0e54efac3e6d523f0c47476..2af7971b1638d89f6f6fae4928265ef02ed5c615 100644 (file)
@@ -388,10 +388,10 @@ static
 AT_YYERROR_SEES_LOC_IF([[
   fprintf (stderr, "%d.%d",
            ]AT_LOC_FIRST_LINE[, ]AT_LOC_FIRST_COLUMN[);
-  if (]AT_LOC_FIRST_LINE[ != ]AT_LOC_LAST_LINE[)
+  if (]AT_LOC_FIRST_LINE[ < ]AT_LOC_LAST_LINE[)
     fprintf (stderr, "-%d.%d",
              ]AT_LOC_LAST_LINE[,  ]AT_LOC_LAST_COLUMN[ - 1);
-  else if (]AT_LOC_FIRST_COLUMN[ != ]AT_LOC_LAST_COLUMN[ - 1)
+  else if (]AT_LOC_FIRST_COLUMN[ < ]AT_LOC_LAST_COLUMN[ - 1)
     fprintf (stderr, "-%d",
              ]AT_LOC_LAST_COLUMN[ - 1);
   fprintf (stderr, ": ");]])[