]> git.saurik.com Git - bison.git/commitdiff
Fix iteration type.
authorAkim Demaille <demaille@gostai.com>
Mon, 21 Jul 2008 11:49:54 +0000 (13:49 +0200)
committerAkim Demaille <demaille@gostai.com>
Tue, 4 Nov 2008 20:21:25 +0000 (21:21 +0100)
* data/lalr1-fusion.cc: Use an int to iterate up to an int.

ChangeLog
data/lalr1-fusion.cc

index d8160b0c6d06ff5f877a95d21077953a197023d9..1d2b590e0a4fabc89552d3cc5e28a9e8096b9852 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-04  Akim Demaille  <demaille@gostai.com>
+
+       Fix iteration type.
+       * data/lalr1-fusion.cc: Use an int to iterate up to an int.
+
 2008-11-04  Akim Demaille  <demaille@gostai.com>
 
        Factor the declaration of the integer tables.
 2008-11-04  Akim Demaille  <demaille@gostai.com>
 
        Factor the declaration of the integer tables.
index 93d72dfe6f8f634631f2cdf90c6c2e337db88950..7ae8ce843bad73e269f2c913f495912733c1f114 100644 (file)
@@ -888,7 +888,7 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param))[;
 
 ]b4_variant_if([
     // Destroy the lhs symbols.
 
 ]b4_variant_if([
     // Destroy the lhs symbols.
-    for (unsigned i = 0; i < yylen; ++i)
+    for (int i = 0; i < yylen; ++i)
       {
         b4_symbol_variant([[yystos_[yystack_@{i@}.state]]],
                           [[yystack_@{i@}.value]],
       {
         b4_symbol_variant([[yystos_[yystack_@{i@}.state]]],
                           [[yystack_@{i@}.value]],