From b475e0cce5411d3eeb149f81d299a248412986ad Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 21 Nov 2002 05:18:57 +0000 Subject: [PATCH] (nullable_compute): Use abort rather than assert. --- src/nullable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nullable.c b/src/nullable.c index c0b60f64..c4b9944d 100644 --- a/src/nullable.c +++ b/src/nullable.c @@ -99,7 +99,8 @@ nullable_compute (void) else { /* This rule has an empty RHS. */ - assert (item_number_as_rule_number (rule->rhs[0]) == ruleno); + if (item_number_as_rule_number (rule->rhs[0]) != ruleno) + abort (); if (rule->useful && !nullable[rule->lhs->number]) { nullable[rule->lhs->number] = 1; -- 2.45.2