[Python-checkins] r71184 - python/branches/py3k/Objects/stringlib/formatter.h

eric.smith python-checkins at python.org
Sat Apr 4 21:35:50 CEST 2009


Author: eric.smith
Date: Sat Apr  4 21:35:49 2009
New Revision: 71184

Log:
Resolves issue 5690: accidentally skipping code in non-debug build.

Modified:
   python/branches/py3k/Objects/stringlib/formatter.h

Modified: python/branches/py3k/Objects/stringlib/formatter.h
==============================================================================
--- python/branches/py3k/Objects/stringlib/formatter.h	(original)
+++ python/branches/py3k/Objects/stringlib/formatter.h	Sat Apr  4 21:35:49 2009
@@ -692,7 +692,7 @@
 #endif
             if (format->type == 'n')
 #ifndef NDEBUG
-                r = 
+                r =
 #endif
                     STRINGLIB_GROUPING_LOCALE(pstart, n_digits, n_digits,
                            spec.n_total+n_grouping_chars-n_leading_chars,
@@ -700,10 +700,10 @@
             else
 #ifndef NDEBUG
                 r =
+#endif
                     STRINGLIB_GROUPING(pstart, n_digits, n_digits,
                            spec.n_total+n_grouping_chars-n_leading_chars,
                            NULL, 0, "\3", ",");
-#endif
             assert(r);
     }
 


More information about the Python-checkins mailing list