long_to_decimal_string_internal() doesn't need to write the final NULL character
This commit is contained in:
parent
aa7712711d
commit
9cc98c93a7
|
@ -1651,7 +1651,6 @@ long_to_decimal_string_internal(PyObject *aa,
|
||||||
else \
|
else \
|
||||||
p = (TYPE*)PyUnicode_DATA(str) + strlen; \
|
p = (TYPE*)PyUnicode_DATA(str) + strlen; \
|
||||||
\
|
\
|
||||||
*p = '\0'; \
|
|
||||||
/* pout[0] through pout[size-2] contribute exactly \
|
/* pout[0] through pout[size-2] contribute exactly \
|
||||||
_PyLong_DECIMAL_SHIFT digits each */ \
|
_PyLong_DECIMAL_SHIFT digits each */ \
|
||||||
for (i=0; i < size - 1; i++) { \
|
for (i=0; i < size - 1; i++) { \
|
||||||
|
|
Loading…
Reference in New Issue