From 2065572a11fca8c31adbb7d00c6518b290099445 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 20 Nov 2022 22:43:32 +0200 Subject: [PATCH] ggml : fix Windows build --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 484b6dc..d58d988 100644 --- a/ggml.c +++ b/ggml.c @@ -37,7 +37,7 @@ typedef HANDLE pthread_t; typedef DWORD thread_ret_t; static int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg) { - HANDLE handle = CreateThread(NULL, 0, func, arg, 0, NULL); + HANDLE handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) func, arg, 0, NULL); if (handle == NULL) { return EAGAIN;