[pypy-svn] r16731 - pypy/release/0.7.x/pypy/translator/c/src

arigo at codespeak.net arigo at codespeak.net
Sat Aug 27 12:49:24 CEST 2005


Author: arigo
Date: Sat Aug 27 12:49:23 2005
New Revision: 16731

Modified:
   pypy/release/0.7.x/pypy/translator/c/src/ll_thread.h
Log:
Trying to work around the last gcc warning.


Modified: pypy/release/0.7.x/pypy/translator/c/src/ll_thread.h
==============================================================================
--- pypy/release/0.7.x/pypy/translator/c/src/ll_thread.h	(original)
+++ pypy/release/0.7.x/pypy/translator/c/src/ll_thread.h	Sat Aug 27 12:49:23 2005
@@ -36,10 +36,10 @@
 	}
 }
 
-long LL_thread_start(void (*func)(void *), void *arg)
+long LL_thread_start(void *func, void *arg)
 {
 	/* XXX func() should not raise exceptions */
-	long ident = RPyThreadStart(func, arg);
+	long ident = RPyThreadStart((void (*)(void*)) func, arg);
 	if (ident == -1)
 		RPyRaiseSimpleException(PyExc_thread_error,
 					"can't start new thread");



More information about the Pypy-commit mailing list