[Numpy-svn] r6215 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sat Dec 27 10:17:09 CST 2008


Author: cdavid
Date: 2008-12-27 10:16:52 -0600 (Sat, 27 Dec 2008)
New Revision: 6215

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
More formatting fixes.

Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2008-12-27 16:16:18 UTC (rev 6214)
+++ trunk/numpy/core/src/scalartypes.inc.src	2008-12-27 16:16:52 UTC (rev 6215)
@@ -671,10 +671,9 @@
     if (val.real == 0.0) {
         PyOS_snprintf(format, sizeof(format), "%%.%i" NPY_@NAME@_FMT, prec);
         PyOS_ascii_formatd(buf, buflen - 1, format, val.imag);
-	strncat(buf, "j", 1);
-    }
-    else {
-	char re[64], im[64];
+        strncat(buf, "j", 1);
+    } else {
+        char re[64], im[64];
         PyOS_snprintf(format, sizeof(format), "%%.%i" NPY_@NAME@_FMT, prec);
         PyOS_ascii_formatd(re, sizeof(re), format, val.real);
         PyOS_snprintf(format, sizeof(format), "%%+.%i" NPY_@NAME@_FMT, prec);



More information about the Numpy-svn mailing list