parent
979148e863
commit
b87bcb6d92
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ proc osLastError*(): OSErrorCode {.sideEffect.} =
|
||||||
when defined(nimscript):
|
when defined(nimscript):
|
||||||
discard
|
discard
|
||||||
elif defined(windows):
|
elif defined(windows):
|
||||||
result = OSErrorCode(getLastError())
|
result = cast[OSErrorCode](getLastError())
|
||||||
else:
|
else:
|
||||||
result = OSErrorCode(errno)
|
result = OSErrorCode(errno)
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue