stupid gcc

This commit is contained in:
rsc 2005-02-03 15:41:39 +00:00
parent 3842363abc
commit 46cfcf550f

View file

@ -148,7 +148,7 @@ _pthreadinit(void)
* thread IDs. * thread IDs.
*/ */
id = pthread_self(); 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()); sysfatal("cannot use LinuxThreads as pthread library; see %s/src/libthread/README.Linux", get9root());
} }
pthread_key_create(&prockey, 0); pthread_key_create(&prockey, 0);