[Numpy-svn] r6319 - branches/fix_float_format/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Mon Jan 12 15:26:24 CST 2009


Author: ptvirtan
Date: 2009-01-12 15:25:53 -0600 (Mon, 12 Jan 2009)
New Revision: 6319

Modified:
   branches/fix_float_format/numpy/core/src/numpyos.c
Log:
Initialize a variable properly

Modified: branches/fix_float_format/numpy/core/src/numpyos.c
===================================================================
--- branches/fix_float_format/numpy/core/src/numpyos.c	2009-01-12 21:22:51 UTC (rev 6318)
+++ branches/fix_float_format/numpy/core/src/numpyos.c	2009-01-12 21:25:53 UTC (rev 6319)
@@ -302,6 +302,7 @@
     double div = 1e10;
     double tmp, c;
 
+    tmp = 0;
     c = mul;
     for (;;) {
         c *= mul;
@@ -310,6 +311,7 @@
     }
     NumPyOS_PINF = c;
 
+    tmp = 0;
     c = div;
     for (;;) {
         c /= div;



More information about the Numpy-svn mailing list