diff options
author | Borislav Stanimirov <b.stanimirov@abv.bg> | 2023-08-04 13:07:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 13:07:21 +0300 |
commit | ff966e7ca6af127c9405523cdb07ef8fa01bf6d6 (patch) | |
tree | efa2175da1110216b711950568860649281c0fe3 /examples/grammar-parser.cpp | |
parent | 8183159cf3def112f6d1fe94815fce70e1bffa12 (diff) |
build : fix several cast and printf warnings (#2499)
Diffstat (limited to 'examples/grammar-parser.cpp')
-rw-r--r-- | examples/grammar-parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/grammar-parser.cpp b/examples/grammar-parser.cpp index 019d5e1b..e76bd11c 100644 --- a/examples/grammar-parser.cpp +++ b/examples/grammar-parser.cpp @@ -405,7 +405,7 @@ namespace grammar_parser { for (size_t i = 0, end = state.rules.size(); i < end; i++) { // fprintf(file, "%zu: ", i); // print_rule_binary(file, state.rules[i]); - print_rule(file, i, state.rules[i], symbol_id_names); + print_rule(file, uint32_t(i), state.rules[i], symbol_id_names); // fprintf(file, "\n"); } } catch (const std::exception & err) { |