style: make item_index a truly different type from item_number

See previous commit.

* src/gram.h (item_index): Make it unsigned.
Fix remaiming issues.
This commit is contained in:
Akim Demaille
2020-05-25 07:34:11 +02:00
parent 6a1a681fd2
commit 518dc6ca26
5 changed files with 10 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ max_length (size_t *width, const char *str)
static void
print_core (FILE *out, state *s)
{
item_number *sitems = s->items;
item_index *sitems = s->items;
size_t snritems = s->nitems;
/* Output all the items of a state, not only its kernel. */
if (report_flag & report_itemsets)