diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-10-29 14:47:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 14:47:22 +0100 |
commit | 0c26d19e228e831393cb5d2c1f43660362d349c9 (patch) | |
tree | 6b989d3175a5332dcd61489e22350f3748b89b09 /lib/system | |
parent | 94ffc183323c859fc5a395404ac6035ae29cbc5a (diff) | |
download | Nim-0c26d19e228e831393cb5d2c1f43660362d349c9.tar.gz |
NIR: VM + refactorings (#22835)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/ansi_c.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index be931ed14..1c8a79fd8 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -65,7 +65,7 @@ elif defined(macosx) or defined(linux) or defined(freebsd) or SIGSEGV* = cint(11) SIGTERM* = cint(15) SIGPIPE* = cint(13) - SIG_DFL* = cast[CSighandlerT](0) + SIG_DFL* = CSighandlerT(nil) elif defined(haiku): const SIGABRT* = cint(6) @@ -75,7 +75,7 @@ elif defined(haiku): SIGSEGV* = cint(11) SIGTERM* = cint(15) SIGPIPE* = cint(7) - SIG_DFL* = cast[CSighandlerT](0) + SIG_DFL* = CSighandlerT(nil) else: when defined(nimscript): {.error: "SIGABRT not ported to your platform".} |