From 604b8bdfa6320bbcb018eebcc1252dfede603c6b Mon Sep 17 00:00:00 2001 From: Evan Jones Date: Thu, 17 Aug 2023 19:54:44 -0400 Subject: Fix unicode in grammars (fixes #2501) (#2553) * Fix unicode in grammars (fixes #2501) * add more comments * fix test-llama-grammar --- tests/test-llama-grammar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test-llama-grammar.cpp b/tests/test-llama-grammar.cpp index f98c6531..81c31e9e 100644 --- a/tests/test-llama-grammar.cpp +++ b/tests/test-llama-grammar.cpp @@ -199,7 +199,7 @@ int main() uint32_t *cp = new uint32_t[2]; // dynamically allocate memory for code_point cp[0] = 37 + i; cp[1] = 0; - next_candidates[i] = {i, cp}; + next_candidates[i] = {i, cp, {}}; } std::vector>> expected_reject = { -- cgit v1.2.3