From ba40b2d779a959a1113a5b2eda655430c5f78881 Mon Sep 17 00:00:00 2001 From: helly Date: Tue, 24 Apr 2007 17:02:10 +0000 Subject: [PATCH] - '0' should get value 0 --- re2c/parser.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/re2c/parser.y b/re2c/parser.y index 0fe0b13d..93da8f51 100644 --- a/re2c/parser.y +++ b/re2c/parser.y @@ -388,9 +388,8 @@ void parse(Scanner& i, std::ostream& o, std::ostream* h) { // After merging star rules merge none code to specmap // this simplifies some stuff. - // Note that 0 inserts first, which is important. - // Also "0" won't necessarily get index 0! - specMap["0"] = std::make_pair(specMap.size(), specNone); + // Note that "0" inserts first, which is important. + specMap["0"] = std::make_pair(0, specNone); } size_t nCount = specMap.size(); -- 2.50.1