]> granicus.if.org Git - re2c/commitdiff
- '0' should get value 0
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 24 Apr 2007 17:02:10 +0000 (17:02 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 24 Apr 2007 17:02:10 +0000 (17:02 +0000)
re2c/parser.y

index 0fe0b13dff23850a80eadbfba030dc292f824a6d..93da8f518fc4ce721fa7bb1075de40426a33ef59 100644 (file)
@@ -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();