Pipe error location through error->node.

This commit is contained in:
Miguel Lechon committed 2021-03-18 17:40:06 +01:00
1 parent f4965c782d
commit eef82b0554
4 files changed
+30 -31

No files matched your search

+2 -1
View File
@@ -6,7 +6,8 @@
#define DEBUG_PRINT_GENERATED_TESTS 1
// NOTE: https://www.pcg-random.org/download.html
typedef struct RandomSeries{
typedef struct RandomSeries
{
MD_u64 state; // NOTE: RNG state. All values are possible.
MD_u64 inc; // Controls which RNG sequence (stream) is selected. Odd at all times.
} RandomSeries;
+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;