summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-02 21:20:48 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-02 21:20:48 +0000
commit02936918c847debee80ef5a7fa6ae0951d76d70e (patch)
tree4c84272bf375c43b4edcd4664a971e4d6505586c
parentfe784d47fd5c0188e0f6f06e9c4881e39ac77aaf (diff)
downloadATCD-02936918c847debee80ef5a7fa6ae0951d76d70e.tar.gz
Use ACE_UINT64_DBLCAST_ADAPTER to avoid Win32 warnings
-rw-r--r--TAO/performance-tests/Demux/demux_test_client.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/TAO/performance-tests/Demux/demux_test_client.cpp b/TAO/performance-tests/Demux/demux_test_client.cpp
index a0b86b0ea0f..328fbdae5b1 100644
--- a/TAO/performance-tests/Demux/demux_test_client.cpp
+++ b/TAO/performance-tests/Demux/demux_test_client.cpp
@@ -332,7 +332,8 @@ Demux_Test_Client::run_linear_test (CORBA::Environment &env)
end = ACE_OS::gethrtime ();
m++;
- ACE_OS::fprintf (this->result_fp_, "%d %f\n", m, (1.0*end - 1.0*start));
+ ACE_OS::fprintf (this->result_fp_, "%d %f\n", m,
+ 1.0 * ACE_UINT64_DBLCAST_ADAPTER (end - start));
}
return 0;
@@ -363,7 +364,8 @@ Demux_Test_Client::run_random_test (CORBA::Environment &env)
end = ACE_OS::gethrtime ();
m++;
- ACE_OS::fprintf (this->result_fp_, "%d %f\n", m, (1.0*end - 1.0*start));
+ ACE_OS::fprintf (this->result_fp_, "%d %f\n", m,
+ 1.0 * ACE_UINT64_DBLCAST_ADAPTER (end - start));
}
return 0;
@@ -388,7 +390,8 @@ Demux_Test_Client::run_best_test (CORBA::Environment &env)
end = ACE_OS::gethrtime ();
m++;
- ACE_OS::fprintf (this->result_fp_, "%d %f\n", m, (1.0*end - 1.0*start));
+ ACE_OS::fprintf (this->result_fp_, "%d %f\n", m,
+ 1.0 * ACE_UINT64_DBLCAST_ADAPTER (end - start));
}
return 0;
@@ -415,7 +418,8 @@ Demux_Test_Client::run_worst_test (CORBA::Environment &env)
end = ACE_OS::gethrtime ();
m++;
- ACE_OS::fprintf (this->result_fp_, "%d %f\n", m, (1.0*end - 1.0*start));
+ ACE_OS::fprintf (this->result_fp_, "%d %f\n", m,
+ 1.0 * ACE_UINT64_DBLCAST_ADAPTER (end - start));
}
return 0;