tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r543419 - /tomcat/connectors/trunk/jk/native/common/jk_util.c
Date Fri, 01 Jun 2007 07:53:53 GMT
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message