summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/formatter.h
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-04 19:35:49 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-04 19:35:49 (GMT)
commitb4a49f69b06862926bb6b4af6d3e814d3711ebf6 (patch)
tree24ec35a9d9365a864fbab6a6063ba3a97efe588a /Objects/stringlib/formatter.h
parenta5809c84b392ef855ac18b17967c9f7e34118053 (diff)
downloadcpython-b4a49f69b06862926bb6b4af6d3e814d3711ebf6.zip
cpython-b4a49f69b06862926bb6b4af6d3e814d3711ebf6.tar.gz
cpython-b4a49f69b06862926bb6b4af6d3e814d3711ebf6.tar.bz2
Resolves issue 5690: accidentally skipping code in non-debug build.
Diffstat (limited to 'Objects/stringlib/formatter.h')
-rw-r--r--Objects/stringlib/formatter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h
index 57e5452..b86dc8b 100644
--- a/Objects/stringlib/formatter.h
+++ b/Objects/stringlib/formatter.h
@@ -692,7 +692,7 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format,
#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 @@ format_int_or_long_internal(PyObject *value, const InternalFormatSpec *format,
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);
}