src/lib/errCatch.c 1.7
1.7 2010/04/01 16:35:37 markd
fixed 3264bit portability issue the right way
Index: src/lib/errCatch.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/errCatch.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/lib/errCatch.c 5 Mar 2010 02:52:17 -0000 1.6
+++ src/lib/errCatch.c 1 Apr 2010 16:35:37 -0000 1.7
@@ -51,9 +51,9 @@
pthread_t pid = pthread_self(); // can be a pointer or a number
// A true integer has function would be nicer, but this will do.
// Don't safef, theoretically that could abort.
char key[64];
-snprintf(key, sizeof(key), "%lld", (long long)pid);
+snprintf(key, sizeof(key), "%lld", ptrToLL(pid));
key[ArraySize(key)-1] = '\0';
if (perThreadStacks == NULL)
perThreadStacks = hashNew(0);
struct hashEl *hel = hashLookup(perThreadStacks, key);