From 6b5518c9dabf8993589e3c169f263d1c7f5d9187 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Fri, 12 Apr 2024 16:47:44 +0100 Subject: [PATCH] grammars: uniform use of int for min & max --- common/grammar-parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/grammar-parser.cpp b/common/grammar-parser.cpp index 3282310a9..2b012d037 100644 --- a/common/grammar-parser.cpp +++ b/common/grammar-parser.cpp @@ -153,7 +153,7 @@ namespace grammar_parser { size_t last_sym_start = out_elements.size(); const char * pos = src; - auto handle_repetitions = [&](size_t min_times, int max_times) { + auto handle_repetitions = [&](int min_times, int max_times) { if (last_sym_start == out_elements.size()) { throw std::runtime_error(std::string("expecting preceding item to */+/?/{ at ") + pos);