diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ace/OS_NS_stdlib.cpp | 2 |
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. |