summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-01-22 14:06:53 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-01-22 14:06:53 +0100
commit0dd18113449ba02ac2794adbd47226983912901d (patch)
tree059fe16660af46340842aaca332373bac6d2652d /lib
parent6e145d426934489e32fde9a01969cb3117fd33de (diff)
downloadNim-0dd18113449ba02ac2794adbd47226983912901d.tar.gz
make C++ tests green again
Diffstat (limited to 'lib')
-rw-r--r--lib/system/excpt.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index 0087c6139..3d75a8704 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -386,9 +386,9 @@ proc writeStackTrace() =
   when hasSomeStackTrace:
     var s = ""
     rawWriteStackTrace(s)
-    cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s)
+    cast[proc (s: cstring) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s)
   else:
-    cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n")
+    cast[proc (s: cstring) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n")
 
 proc getStackTrace(): string =
   when hasSomeStackTrace: