From 478da0194ba41bdc2d91f734e4b2a218a283acde Mon Sep 17 00:00:00 2001 From: Varriount Date: Thu, 22 Jan 2015 18:46:00 -0500 Subject: Fix #1546 --- lib/system/excpt.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/system/excpt.nim') 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)) -- cgit 1.4.1-2-gfad0