]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : make gcc happy (minor)
authorGeorgi Gerganov <redacted>
Sat, 7 Jan 2023 07:34:39 +0000 (09:34 +0200)
committerGeorgi Gerganov <redacted>
Sat, 7 Jan 2023 07:34:39 +0000 (09:34 +0200)
ggml.c

diff --git a/ggml.c b/ggml.c
index 70728fa25e5275ce5437bf02411f4fa56b1ca4a8..c88eb22741f3f23b8e6d6005acb89891b14c5c43 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -1404,7 +1404,7 @@ struct ggml_context * ggml_init(struct ggml_init_params params) {
             const uint64_t t_start = ggml_time_us(); UNUSED(t_start);
 
             g_state = (struct ggml_state) {
-                /*.contexts =*/ { 0 },
+                /*.contexts =*/ { { 0 } },
             };
 
             for (int i = 0; i < GGML_MAX_CONTEXTS; ++i) {