apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r572455 - /apr/apr/trunk/test/testcond.c
Date Mon, 03 Sep 2007 23:57:55 GMT
Author: wrowe
Date: Mon Sep  3 16:57:51 2007
New Revision: 572455

URL: http://svn.apache.org/viewvc?rev=572455&view=rev
Log:
Fix the condvar trunk/test.  Nothing equivilant in 1.2/0.9,
so nothing to backport.  Quiets nasty double->int truncation.

Modified:
    apr/apr/trunk/test/testcond.c

Modified: apr/apr/trunk/test/testcond.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testcond.c?rev=572455&r1=572454&r2=572455&view=diff
==============================================================================
--- apr/apr/trunk/test/testcond.c (original)
+++ apr/apr/trunk/test/testcond.c Mon Sep  3 16:57:51 2007
@@ -425,7 +425,7 @@
     apr_thread_cond_t *cond = NULL;
     apr_thread_mutex_t *mutex = NULL;
     apr_file_t *in = NULL, *out = NULL;
-    apr_uint32_t i, ncons = (NTHREADS * 0.70);
+    apr_uint32_t i, ncons = (apr_uint32_t)(NTHREADS * 0.70);
 
     rv = apr_file_pipe_create(&in, &out, p);
     ABTS_SUCCESS(rv);



Mime
View raw message