summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-04 00:43:02 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-04 00:43:02 (GMT)
commit9cc98c93a7f65b728431ed8439af86c36edc5e0c (patch)
tree9247d6650aa96b3b7850575d26ba68916486d149 /Objects/longobject.c
parentaa7712711d85ded84055d8deffa6177b7b763b0e (diff)
downloadcpython-9cc98c93a7f65b728431ed8439af86c36edc5e0c.zip
cpython-9cc98c93a7f65b728431ed8439af86c36edc5e0c.tar.gz
cpython-9cc98c93a7f65b728431ed8439af86c36edc5e0c.tar.bz2
long_to_decimal_string_internal() doesn't need to write the final NULL character
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 73413dd..24cf1a5 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1651,7 +1651,6 @@ long_to_decimal_string_internal(PyObject *aa,
else \
p = (TYPE*)PyUnicode_DATA(str) + strlen; \
\
- *p = '\0'; \
/* pout[0] through pout[size-2] contribute exactly \
_PyLong_DECIMAL_SHIFT digits each */ \
for (i=0; i < size - 1; i++) { \