summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-12-17 13:35:02 +0100
committerGitHub <noreply@github.com>2020-12-17 13:35:02 +0100
commitb87bcb6d9245dbb700abb420fe1c8a84a844adbf (patch)
treef7ef5042cafeb03139723485dc5ce204c175681f /lib
parent979148e863c4142a00632059f3e2a57f4ab0f960 (diff)
downloadNim-b87bcb6d9245dbb700abb420fe1c8a84a844adbf.tar.gz
fixes #16359 [backport] (#16377)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/includes/oserr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim
index 138aa127d..673422973 100644
--- a/lib/pure/includes/oserr.nim
+++ b/lib/pure/includes/oserr.nim
@@ -114,7 +114,7 @@ proc osLastError*(): OSErrorCode {.sideEffect.} =
   when defined(nimscript):
     discard
   elif defined(windows):
-    result = OSErrorCode(getLastError())
+    result = cast[OSErrorCode](getLastError())
   else:
     result = OSErrorCode(errno)
 {.pop.}