summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilson_d <wilson_d@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-10-05 16:20:33 +0000
committerwilson_d <wilson_d@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-10-05 16:20:33 +0000
commitd10163e6f884cc9fad3bea17c15055cd6abe8594 (patch)
tree669d324d31398fc9b1afa66f9785d61d634a36be
parentbc44735dec29f950f19ea1624c85e566bccb6a71 (diff)
downloadATCD-d10163e6f884cc9fad3bea17c15055cd6abe8594.tar.gz
ChangeLogTag: Tue Oct 5 11:16:53 2004 Dale Wilson <wilson_d@ociweb.com>
-rw-r--r--ChangeLog5
-rw-r--r--ace/OS_NS_stdlib.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e2d26d20c6f..44203abd171 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Oct 5 11:16:53 2004 Dale Wilson <wilson_d@ociweb.com>
+ * ace/OS_NS_stdlib.cpp:
+ Build error on VC7.1: initializing float w/ double may lose data
+ There was already a cast there to suppress the warning. I included entire expression in the cast.
+
Tue Oct 5 08:54:20 2004 Chad Elliott <elliott_c@ociweb.com>
* bin/MakeProjectCreator/templates/bor.mpd:
diff --git a/ace/OS_NS_stdlib.cpp b/ace/OS_NS_stdlib.cpp
index 652c32a4c38..3c6a3abdf69 100644
--- a/ace/OS_NS_stdlib.cpp
+++ b/ace/OS_NS_stdlib.cpp
@@ -628,7 +628,7 @@ ACE_OS::mkstemp_emulation (ACE_TCHAR * s)
// Factor out the constant coefficient.
static float const coefficient =
- static_cast<float> (MAX_VAL) / (RAND_MAX + 1.0);
+ static_cast<float> (MAX_VAL / (RAND_MAX + 1.0));
// @@ These nested loops may be ineffecient. Improvements are
// welcome.