Fix MSVC compiler error
This commit is contained in:
parent
8847e95725
commit
f857820e5d
1 changed files with 1 additions and 1 deletions
|
@ -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<decltype(pPrefetchVirtualMemory)> GetProcAddress(hKernel32, "PrefetchVirtualMemory");
|
||||
pPrefetchVirtualMemory = reinterpret_cast<decltype(pPrefetchVirtualMemory)> (GetProcAddress(hKernel32, "PrefetchVirtualMemory"));
|
||||
|
||||
if (pPrefetchVirtualMemory) {
|
||||
// Advise the kernel to preload the mapped memory.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue