perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgollu...@apache.org
Subject svn commit: r983068 - /perl/modperl/trunk/xs/APR/OS/APR__OS.h
Date Fri, 06 Aug 2010 17:50:52 GMT
Author: pgollucci
Date: Fri Aug  6 17:50:52 2010
New Revision: 983068

URL: http://svn.apache.org/viewvc?rev=983068&view=rev
Log:
Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8.

 xs/APR/OS/APR__OS.h: In function 'mpxs_APR__OS_current_thread_id':
 xs/APR/OS/APR__OS.h:20: warning: cast from pointer to integer of different size

Consistently cast this to an unsigned long.


Modified:
    perl/modperl/trunk/xs/APR/OS/APR__OS.h

Modified: perl/modperl/trunk/xs/APR/OS/APR__OS.h
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/xs/APR/OS/APR__OS.h?rev=983068&r1=983067&r2=983068&view=diff
==============================================================================
--- perl/modperl/trunk/xs/APR/OS/APR__OS.h (original)
+++ perl/modperl/trunk/xs/APR/OS/APR__OS.h Fri Aug  6 17:50:52 2010
@@ -14,10 +14,10 @@
  * limitations under the License.
  */
 
-static MP_INLINE U32 mpxs_APR__OS_current_thread_id(pTHX)
+static MP_INLINE unsigned long mpxs_APR__OS_current_thread_id(pTHX)
 {
 #if APR_HAS_THREADS
-    return (U32)apr_os_thread_current();
+    return (unsigned long)apr_os_thread_current();
 #else
     return 0;
 #endif



Mime
View raw message