parent
979148e863
commit
b87bcb6d92
1 changed files with 1 additions and 1 deletions
|
|
@ -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.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue