From: Simon Marlow Date: Wed, 23 Jul 2008 10:43:22 +0000 (+0000) Subject: fix bug in sparkPoolSize (affects debug output only) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=3eb8462836317d1c21bfd51969b2042fab6676cb fix bug in sparkPoolSize (affects debug output only) --- diff --git a/rts/Sparks.h b/rts/Sparks.h index f617558..bf10a59 100644 --- a/rts/Sparks.h +++ b/rts/Sparks.h @@ -46,7 +46,7 @@ INLINE_HEADER nat sparkPoolSize (StgSparkPool *pool) { if (pool->hd <= pool->tl) { - return (pool->hd - pool->tl); + return (pool->tl - pool->hd); } else { return (pool->lim - pool->hd + pool->tl - pool->base); }