apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r587576 - /apr/apr/branches/1.2.x/threadproc/win32/thread.c
Date Tue, 23 Oct 2007 18:02:56 GMT
Author: wrowe
Date: Tue Oct 23 11:02:55 2007
New Revision: 587576

URL: http://svn.apache.org/viewvc?rev=587576&view=rev
Log:
Testing attr->stacksize > 0 was redundant and this
must be truncated to a DWORD, backport from trunk.

Modified:
    apr/apr/branches/1.2.x/threadproc/win32/thread.c

Modified: apr/apr/branches/1.2.x/threadproc/win32/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/threadproc/win32/thread.c?rev=587576&r1=587575&r2=587576&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/threadproc/win32/thread.c (original)
+++ apr/apr/branches/1.2.x/threadproc/win32/thread.c Tue Oct 23 11:02:55 2007
@@ -108,7 +108,7 @@
      */
 #ifndef _WIN32_WCE
     if ((handle = (HANDLE)_beginthreadex(NULL,
-                        attr && attr->stacksize > 0 ? attr->stacksize :
0,
+                        (DWORD) (attr ? attr->stacksize : 0),
                         (unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker,
                         (*new), 0, &temp)) == 0) {
         return APR_FROM_OS_ERROR(_doserrno);



Mime
View raw message