1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00

Bit more of:

* threads.c (thread_print): Cope with the case where pthread_t is a
	struct, as found on mingw.  Can't just cast to size_t for printing.
	Reported by Nils Durner.
Should be scm_i_pthread_t of course, to cope with null-threads.h.
This commit is contained in:
Kevin Ryde 2006-12-14 23:13:51 +00:00
parent e31968dd7a
commit 1169fab3c4

View file

@ -146,7 +146,7 @@ thread_print (SCM exp, SCM port, scm_print_state *pstate SCM_UNUSED)
the struct case, hence we go via a union, and extract according to the
size of pthread_t. */
union {
pthread_t p;
scm_i_pthread_t p;
unsigned short us;
unsigned int ui;
unsigned long ul;