From f857820e5d5946f151da2eb0db699e1b5d90e069 Mon Sep 17 00:00:00 2001 From: vxiiduu <73044267+vxiiduu@users.noreply.github.com> Date: Sun, 13 Aug 2023 01:09:26 +1000 Subject: [PATCH] Fix MSVC compiler error --- llama-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama-util.h b/llama-util.h index 06ee00194..75e19c50c 100644 --- a/llama-util.h +++ b/llama-util.h @@ -281,7 +281,7 @@ struct llama_mmap { hKernel32 = GetModuleHandleW(L"kernel32.dll"); // This call may fail if on a pre-Win8 system. - pPrefetchVirtualMemory = reinterpret_cast GetProcAddress(hKernel32, "PrefetchVirtualMemory"); + pPrefetchVirtualMemory = reinterpret_cast (GetProcAddress(hKernel32, "PrefetchVirtualMemory")); if (pPrefetchVirtualMemory) { // Advise the kernel to preload the mapped memory.