Commit Diff


commit - 3842363abcf0fba2701a960d03ab5e9a24cafc8c
commit + 46cfcf550f190fdef3496ae81d52c621862d01b1
blob - 7404817d9a526ea8a40fb7538624966403430a4a
blob + 46bb396a28b04b1b5aef43f5a8450c32ff2db5d2
--- src/libthread/pthread.c
+++ src/libthread/pthread.c
@@ -148,7 +148,7 @@ _pthreadinit(void)
 		 * thread IDs.
 		 */
 		id = pthread_self();
-		if(*(ulong*)&id < 1024*1024)
+		if(*(ulong*)(void*)&id < 1024*1024)
 			sysfatal("cannot use LinuxThreads as pthread library; see %s/src/libthread/README.Linux", get9root());
 	}
 	pthread_key_create(&prockey, 0);