summaryrefslogtreecommitdiff
path: root/examples/grammar-parser.cpp
diff options
context:
space:
mode:
authorBorislav Stanimirov <b.stanimirov@abv.bg>2023-08-04 13:07:21 +0300
committerGitHub <noreply@github.com>2023-08-04 13:07:21 +0300
commitff966e7ca6af127c9405523cdb07ef8fa01bf6d6 (patch)
treeefa2175da1110216b711950568860649281c0fe3 /examples/grammar-parser.cpp
parent8183159cf3def112f6d1fe94815fce70e1bffa12 (diff)
build : fix several cast and printf warnings (#2499)
Diffstat (limited to 'examples/grammar-parser.cpp')
-rw-r--r--examples/grammar-parser.cpp2
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) {