diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index abe20e91a0..2bbcc04176 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -164,7 +164,7 @@ proc processID*(): int = type DWORD = uint32 proc GetCurrentProcessId(): DWORD {.stdcall, dynlib: "kernel32", importc: "GetCurrentProcessId".} - result = GetCurrentProcessId() + result = GetCurrentProcessId().int else: result = getpid()