summaryrefslogtreecommitdiff
path: root/TAO/examples
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-01 01:20:06 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-01 01:20:06 +0000
commit26980d9b20ea1cdc72a5bbdb9d7d1585737c89e8 (patch)
treee4e1fda0d02735e6054bae146a0c093437dc34fd /TAO/examples
parentf0babcc8189596ff52952fc8becc183cc5a1d75f (diff)
downloadATCD-26980d9b20ea1cdc72a5bbdb9d7d1585737c89e8.tar.gz
ChangeLogTag:Sat Jul 31 20:14:28 1999 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'TAO/examples')
-rw-r--r--TAO/examples/OBV/Typed_Events/Client_i.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/examples/OBV/Typed_Events/Client_i.cpp b/TAO/examples/OBV/Typed_Events/Client_i.cpp
index 010267768a2..e1c078844fc 100644
--- a/TAO/examples/OBV/Typed_Events/Client_i.cpp
+++ b/TAO/examples/OBV/Typed_Events/Client_i.cpp
@@ -36,7 +36,7 @@ Checkpoint_Client_i::run (const char *name,
ACE_DEBUG ((LM_DEBUG, "Send some random events:\n"));
- double temperature = random_number (29,34);
+ CORBA::Float temperature = random_number (29, 34);
Temperature_var t_e (new Temperature_impl (temperature));
t_e->origin_id_ (KITCHEN);
t_e->do_print ();
@@ -110,10 +110,10 @@ Checkpoint_Client_i::~Checkpoint_Client_i (void)
// A random number in the range of min to max.
-double random_number (double min, double max)
+CORBA::Float random_number (double min, double max)
{
double range = max - min;
- return (min + (range * ACE_OS::rand () / (RAND_MAX + 1.0)));
+ return ACE_static_cast (CORBA::Float, (min + (range * ACE_OS::rand () / (RAND_MAX + 1.0))));
}