Index: tests/concurrent/spinaphore.cfa
===================================================================
--- tests/concurrent/spinaphore.cfa	(revision c0c0bd558dfd47b03c1d7cbb64297e373fc89305)
+++ tests/concurrent/spinaphore.cfa	(revision 84cd72d2bd79d578296b7f9b6a027edd2703da3c)
@@ -49,10 +49,10 @@
 void main(Unblocker & this) {
 	this.sum = 0;
-	unsigned me = (unsigned)&this;
+	unsigned me = (unsigned)(uintptr_t)&this;
 	for(num_unblocks) {
 		$thread * t = V(sem, false);
 		Blocker * b = from_thread(t);
 		b->sum += me;
-		this.sum += (unsigned)b;
+		this.sum += (unsigned)(uintptr_t)b;
 		unpark(t);
 		yield(random(10));
@@ -73,10 +73,10 @@
 		for(i;num_blockers) {
 			for(num_blocks)
-				usum += (unsigned)&blockers[i];
+				usum += (unsigned)(uintptr_t)&blockers[i];
 		}
 
 		for(i;num_unblockers) {
 			for(num_unblocks)
-				bsum += (unsigned)&unblockers[i];
+				bsum += (unsigned)(uintptr_t)&unblockers[i];
 		}
 
