From 46cfcf550f190fdef3496ae81d52c621862d01b1 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 3 Feb 2005 15:41:39 +0000 Subject: stupid gcc --- src/libthread/pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libthread') diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index 7404817d..46bb396a 100644 --- a/src/libthread/pthread.c +++ b/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); -- cgit v1.2.3