summaryrefslogtreecommitdiff
path: root/rts/RtsUtils.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-02-02 10:28:34 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-02-07 13:23:56 +0000
commitbf456a09f9ef68436db48eb5ea25193d3b2f2ed5 (patch)
tree6a3bfb2a278516fbddca7286076fac7c7dd14239 /rts/RtsUtils.c
parente46d26686034448a311f48f7e685f159af865d7c (diff)
downloadhaskell-bf456a09f9ef68436db48eb5ea25193d3b2f2ed5.tar.gz
avoid 32-bit integer overflow (#5831)
Diffstat (limited to 'rts/RtsUtils.c')
-rw-r--r--rts/RtsUtils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c
index e04b9846be..b880f8c9e5 100644
--- a/rts/RtsUtils.c
+++ b/rts/RtsUtils.c
@@ -130,7 +130,7 @@ heapOverflow(void)
{
/* don't fflush(stdout); WORKAROUND bug in Linux glibc */
OutOfHeapHook(0/*unknown request size*/,
- RtsFlags.GcFlags.maxHeapSize * BLOCK_SIZE);
+ (lnat)RtsFlags.GcFlags.maxHeapSize * BLOCK_SIZE);
heap_overflow = rtsTrue;
}