Kaydet (Commit) 9cc98c93 authored tarafından Victor Stinner's avatar Victor Stinner

long_to_decimal_string_internal() doesn't need to write the final NULL character

üst aa771271
...@@ -1651,7 +1651,6 @@ long_to_decimal_string_internal(PyObject *aa, ...@@ -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++) { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment