fix #3910
[ghc-hetmet.git] / rts / Sparks.c
index 93f6417..7e2556d 100644 (file)
@@ -209,7 +209,7 @@ pruneSparkQueue (Capability *cap)
               cap->sparks_pruned++;
           }
       } else if (HEAP_ALLOCED(spark) && 
-                 (Bdescr(spark)->flags & BF_EVACUATED)) {
+                 (Bdescr((P_)spark)->flags & BF_EVACUATED)) {
           if (closure_SHOULD_SPARK(spark)) {
               elements[botInd] = spark; // keep entry (new address)
               botInd++;