diff options
author | Varriount <clay.sweetser@gmail.com> | 2015-01-22 18:46:00 -0500 |
---|---|---|
committer | Varriount <clay.sweetser@gmail.com> | 2015-01-22 18:46:00 -0500 |
commit | 478da0194ba41bdc2d91f734e4b2a218a283acde (patch) | |
tree | 26cb25fe6f20df43209e98271527f23042bab765 /lib/system/excpt.nim | |
parent | 4bcd96e20c323a7cc676ce943befd7ca9bca5875 (diff) | |
download | Nim-478da0194ba41bdc2d91f734e4b2a218a283acde.tar.gz |
Fix #1546
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r-- | lib/system/excpt.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 3ef0d9ce3..417a8634f 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -341,7 +341,7 @@ when not defined(noSignalHandler): registerSignalHandler() # call it in initialization section -proc setControlCHook(hook: proc () {.noconv.}) = +proc setControlCHook(hook: proc () {.noconv.} not nil) = # ugly cast, but should work on all architectures: type TSignalHandler = proc (sig: cint) {.noconv, benign.} c_signal(SIGINT, cast[TSignalHandler](hook)) |