Author: sebor
Date: Wed Mar 15 18:48:56 2006
New Revision: 386243
URL: http://svn.apache.org/viewcvs?rev=386243&view=rev
Log:
2006-03-15 Martin Sebor <[EMAIL PROTECTED]>
* driver.cpp (RLIM_SAVED_CUR, RLIM_SAVED_MAX): Defined to RLIM_INFINITY
when not #defined.
(rw_vtest): Explicitly cast an int to long to silence HP aCC's integer
widening warning 887.
Modified:
incubator/stdcxx/trunk/tests/src/driver.cpp
Modified: incubator/stdcxx/trunk/tests/src/driver.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/src/driver.cpp?rev=386243&r1=386242&r2=386243&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/driver.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/driver.cpp Wed Mar 15 18:48:56 2006
@@ -48,6 +48,14 @@
# include <unistd.h> // for isatty()
# include <sys/resource.h> // for setlimit()
+# ifndef RLIM_SAVED_CUR
+# define RLIM_SAVED_CUR RLIM_INFINITY
+# endif // RLIM_SAVED_CUR
+
+# ifndef RLIM_SAVED_MAX
+# define RLIM_SAVED_MAX RLIM_INFINITY
+# endif // RLIM_SAVED_MAX
+
// declare fileno in case it's not declared (for strict ANSI conformance)
extern "C" {
@@ -1055,7 +1063,7 @@
++nlines;
const long num = (ndiags [i][0] - ndiags [i][1]) * 100L;
- const long den = ndiags [i][0];
+ const long den = long (ndiags [i][0]);
const long pct = den ? num / den : 0;