fix bug in sparkPoolSize (affects debug output only)
[ghc-hetmet.git] / 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);
     }