mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-03 14:18:45 +00:00
Pipe error location through error->node.
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user