Index: src/spaces.h
--- src/spaces.h.orig
+++ src/spaces.h
@@ -464,7 +464,7 @@ class MemoryChunk {
   }
 
   bool TryParallelSweeping() {
-    return NoBarrier_CompareAndSwap(&parallel_sweeping_, 1, 0) == 1;
+    return NoBarrier_CompareAndSwap(reinterpret_cast<Atomic32 *>(&parallel_sweeping_), 1, 0) == 1;
   }
 
   // Manage live byte count (count of bytes known to be live,
