stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r643941 - /stdcxx/trunk/etc/config/src/INFINITY.cpp
Date Wed, 02 Apr 2008 15:37:55 GMT
Author: faridz
Date: Wed Apr  2 08:37:43 2008
New Revision: 643941

URL: http://svn.apache.org/viewvc?rev=643941&view=rev
Log:
2008-04-02  Farid Zaripov  <farid_zaripov@epam.com>

	STDCXX-740
	* etc/config/src/INFINITY.cpp (flt_bits): Fill with zero values the bits array.
	(dbl_bits): Same.
	(ldbl_bits): Same.

Modified:
    stdcxx/trunk/etc/config/src/INFINITY.cpp

Modified: stdcxx/trunk/etc/config/src/INFINITY.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/etc/config/src/INFINITY.cpp?rev=643941&r1=643940&r2=643941&view=diff
==============================================================================
--- stdcxx/trunk/etc/config/src/INFINITY.cpp (original)
+++ stdcxx/trunk/etc/config/src/INFINITY.cpp Wed Apr  2 08:37:43 2008
@@ -23,6 +23,7 @@
  **************************************************************************/
 
 #include <stdio.h>    // for printf()
+#include <string.h>   // for memset()
 
 #include "config.h"
 #include "float_defs.h"  // for FLT_MIN, DBL_MIN, LDBL_MIN
@@ -106,6 +107,8 @@
 {
     char bits [sizeof (float)];
     float val;
+    
+    flt_bits () { memset (bits, 0, sizeof (bits)); }
 };
 
 static float flt_zero ()
@@ -286,6 +289,8 @@
 {
     char bits [sizeof (double)];
     double val;
+    
+    dbl_bits () { memset (bits, 0, sizeof (bits)); }
 };
 
 static float dbl_zero ()
@@ -500,6 +505,8 @@
 {
     char bits [sizeof (long double)];
     long double val;
+    
+    ldbl_bits () { memset (bits, 0, sizeof (bits)); }
 };
 
 static long double ldbl_zero ()



Mime
View raw message