From: helly Date: Tue, 24 Apr 2007 17:02:10 +0000 (+0000) Subject: - '0' should get value 0 X-Git-Tag: 0.13.6~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba40b2d779a959a1113a5b2eda655430c5f78881;p=re2c - '0' should get value 0 --- 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();