From 8a25d8afa97805a76e4d374ee91faaf9e54b02d5 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 30 Apr 2012 20:14:36 +0100 Subject: Fix the stage1 ghc hschooks.c The stage0 compiler might have a different idea as to what type lnat corresponds to, so cast the value to the type we want. --- ghc/hschooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ghc') diff --git a/ghc/hschooks.c b/ghc/hschooks.c index 2572babf41..232ac08045 100644 --- a/ghc/hschooks.c +++ b/ghc/hschooks.c @@ -34,6 +34,6 @@ defaultsHook (void) void StackOverflowHook (lnat stack_size) /* in bytes */ { - fprintf(stderr, "GHC stack-space overflow: current limit is %zu bytes.\nUse the `-K' option to increase it.\n", stack_size); + fprintf(stderr, "GHC stack-space overflow: current limit is %zu bytes.\nUse the `-K' option to increase it.\n", (size_t)stack_size); } -- cgit v1.2.1