@@ -71,7 +71,7 @@ struct sortbin_s
71
71
/**
72
72
* Push a match-list element into the match-list array.
73
73
*/
74
- static void push_match_list_element (fast_matcher_t * ctxt , int id , Disjunct * d )
74
+ static void push_match_list_element (fast_matcher_t * ctxt , uint16_t id , Disjunct * d )
75
75
{
76
76
if (ctxt -> match_list_end >= ctxt -> match_list_size )
77
77
{
@@ -81,7 +81,7 @@ static void push_match_list_element(fast_matcher_t *ctxt, int id, Disjunct *d)
81
81
}
82
82
83
83
#ifdef VERIFY_MATCH_LIST
84
- if (id != 0 ) d -> match_id = id ;
84
+ if (d ) d -> match_id = id ;
85
85
#endif
86
86
ctxt -> match_list [ctxt -> match_list_end ++ ] = d ;
87
87
}
@@ -410,7 +410,7 @@ static void match_stats(Connector *c1, Connector *c2)
410
410
* clutters the source code very much, as it needs to be inserted in plenty
411
411
* of places.)
412
412
*/
413
- static void print_match_list (fast_matcher_t * ctxt , int id , size_t mlb , int w ,
413
+ static void print_match_list (fast_matcher_t * ctxt , uint16_t id , size_t mlb , int w ,
414
414
Connector * lc , int lw ,
415
415
Connector * rc , int rw ,
416
416
Disjunct * * * mlcl , Disjunct * * * mlcr )
@@ -532,7 +532,7 @@ static bool alt_connection_possible(Connector *c1, Connector *c2,
532
532
* Optionally print it (for debug).
533
533
* Return the match list start.
534
534
*/
535
- static size_t terminate_match_list (fast_matcher_t * ctxt , int id ,
535
+ static size_t terminate_match_list (fast_matcher_t * ctxt , uint16_t id ,
536
536
size_t ml_start , int w ,
537
537
Connector * lc , int lw ,
538
538
Connector * rc , int rw ,
@@ -608,10 +608,10 @@ form_match_list(fast_matcher_t *ctxt, int w,
608
608
}
609
609
610
610
#ifdef VERIFY_MATCH_LIST
611
- static int id = 0 ;
612
- int lid = ++ id ; /* A local copy, for multi-threading support. */
611
+ static _Atomic ( uint16_t ) id = 0 ;
612
+ uint16_t lid = ++ id ; /* A local copy, for multi-threading support. */
613
613
#else
614
- const int lid = 0 ;
614
+ const uint16_t lid = 0 ;
615
615
#endif
616
616
617
617
lgdebug (+ D_FAST_MATCHER , "MATCH_LIST %c%c %5d mlb %zu\n" ,
0 commit comments