summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorreactormonk <hafnersimon@gmail.com>2015-01-23 05:21:50 +0500
committerreactormonk <hafnersimon@gmail.com>2015-01-23 05:21:50 +0500
commitcf60f9d1ac362f32db6d6f03ad5111df4cd9f3bc (patch)
tree0a6825a13f2255cb599cd649595c59c042fdba3c /lib
parenta195388c378b579f20a646928d5cf0863d6b958b (diff)
parent478da0194ba41bdc2d91f734e4b2a218a283acde (diff)
downloadNim-cf60f9d1ac362f32db6d6f03ad5111df4cd9f3bc.tar.gz
Merge pull request #2000 from Varriount/fix-1546
Fix #1546
Diffstat (limited to 'lib')
-rw-r--r--lib/system/excpt.nim2
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))