src/lib/errCatch.c 1.5
1.5 2009/12/28 17:57:13 hiram
need a cast on a pointer to (int) for compile on MAC
Index: src/lib/errCatch.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/errCatch.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/lib/errCatch.c 3 Nov 2009 00:35:53 -0000 1.4
+++ src/lib/errCatch.c 28 Dec 2009 17:57:13 -0000 1.5
@@ -47,9 +47,9 @@
static struct errCatch **getStack()
/* Return a pointer to the errCatch object stack for the current pthread. */
{
static struct hash *perThreadStacks = NULL;
-int pid = pthread_self();
+int pid = (int)pthread_self();
// A true integer has function would be nicer, but this will do.
// Don't safef, theoretically that could abort.
char key[16];
snprintf(key, sizeof(key), "%d", pid);