Author: rjung
Date: Fri Jun 1 00:53:52 2007
New Revision: 543419
URL: http://svn.apache.org/viewvc?view=rev&rev=543419
Log:
Correct pthread_t casting in jk_gettid().
Needed at least on Mac OS X,
shouldn't hurt on other platforms.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_util.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?view=diff&rev=543419&r1=543418&r2=543419
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Fri Jun 1 00:53:52 2007
@@ -1686,7 +1686,7 @@
pthread_getunique_np(&t, &tid);
return ((int)(tid.intId.lo & 0xFFFFFFFF));
#else
- int tid = (int)(t & 0xFFFF);
+ int tid = ((int)t) & 0xFFFF;
return tid;
#endif /* AS400 */
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]