fix dumpAst() compilation warning
authorZachary Snow <zach@zachjs.com>
Tue, 18 Jan 2022 07:17:08 +0000 (00:17 -0700)
committerZachary Snow <zach@zachjs.com>
Tue, 18 Jan 2022 07:17:08 +0000 (00:17 -0700)
frontends/ast/ast.cc

index 7be8ab5655d4443c4845f43a569d6b143df2fe0c..6097f02f5ea8f7b0b45e93be31634748f3165669 100644 (file)
@@ -344,7 +344,7 @@ void AstNode::dumpAst(FILE *f, std::string indent) const
        }
        if (!multirange_swapped.empty()) {
                fprintf(f, " multirange_swapped=[");
-               for (auto v : multirange_swapped)
+               for (bool v : multirange_swapped)
                        fprintf(f, " %d", v);
                fprintf(f, " ]");
        }