From fb348c0f1e91727334697e93259920203926e04f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 28 Mar 2018 11:04:49 -0700 Subject: [PATCH] Fix signed/unsigned comparison warning --- src/compiler/build_tables/lex_table_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/build_tables/lex_table_builder.cc b/src/compiler/build_tables/lex_table_builder.cc index 013a8c50..250f6cde 100644 --- a/src/compiler/build_tables/lex_table_builder.cc +++ b/src/compiler/build_tables/lex_table_builder.cc @@ -349,7 +349,7 @@ class LexTableBuilderImpl : public LexTableBuilder { for (auto &entry : state.terminal_entries) { Symbol token = entry.first; if (token.is_external() || token.is_built_in()) continue; - for (Symbol::Index i = 0; i < grammar.variables.size(); i++) { + for (unsigned i = 0; i < grammar.variables.size(); i++) { Symbol other_token = Symbol::terminal(i); ConflictStatus status = get_conflict_status(token, other_token); if (status != ConflictStatus::DoesNotMatch &&