fix bug in sparkPoolSize (affects debug output only)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 23 Jul 2008 10:43:22 +0000 (10:43 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 23 Jul 2008 10:43:22 +0000 (10:43 +0000)
rts/Sparks.h

index f617558..bf10a59 100644 (file)
@@ -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);
     }