From 200776bb515ab1860fc536b625bd23f1f625da55 Mon Sep 17 00:00:00 2001 From: tdevelope Date: Wed, 28 Jan 2026 18:18:24 +0200 Subject: [PATCH] Use #define for MAX_GRAMMAR_RECURSION_DEPTH for consistency --- src/llama-grammar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-grammar.cpp b/src/llama-grammar.cpp index 321d26f3df..2eacd68659 100644 --- a/src/llama-grammar.cpp +++ b/src/llama-grammar.cpp @@ -10,7 +10,7 @@ #include #define MAX_REPETITION_THRESHOLD 2000 -static constexpr uint32_t MAX_GRAMMAR_RECURSION_DEPTH = 2000; +#define MAX_GRAMMAR_RECURSION_DEPTH 2000 // // helpers //