Pipe error location through error->node.

This commit is contained in:
Miguel Lechon
2021-03-18 17:40:06 +01:00
parent f4965c782d
commit eef82b0554
4 changed files with 30 additions and 31 deletions
+1 -1
View File
@@ -471,7 +471,7 @@ int main(void)
MD_Error *e = parse.first_error;
for(int i_error = 0; i_error < max_error_count && tests[i_test].columns[i_error]; ++i_error)
{
if(!e || e->location.column != tests[i_test].columns[i_error])
if(!e || MD_CodeLocFromNode(e->node).column != tests[i_test].columns[i_error])
{
columns_match = 0;
break;