summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-12-03 12:46:32 -0800
committerTimothee Cour <timothee.cour2@gmail.com>2018-12-03 12:46:32 -0800
commite7ab4817e255e8206660fe3d9f8edd29422aaf32 (patch)
tree101a3d5707f5f51d90ce9328b38c62947b4dc214 /lib
parentb93fbcf09a174b559da9ef07d9bb698e93c04972 (diff)
downloadNim-e7ab4817e255e8206660fe3d9f8edd29422aaf32.tar.gz
fixup
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/osproc.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 02aac5cbd..abe20e91a 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -161,7 +161,8 @@ proc processID*(p: Process): int {.rtl, extern: "nosp$1".} =
 proc processID*(): int =
   ## return current process ID
   when defined(windows):
-    proc GetCurrentProcessId(): int32 {.stdcall, dynlib: "kernel32",
+    type DWORD = uint32
+    proc GetCurrentProcessId(): DWORD {.stdcall, dynlib: "kernel32",
                                         importc: "GetCurrentProcessId".}
     result = GetCurrentProcessId()
   else: