Commit 2c32a61f authored by Stefan Behnel's avatar Stefan Behnel

comment

parent 8e8838cf
......@@ -580,7 +580,7 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t wid
static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t width, char padding_char, char format_char) {
// simple and conservative C string allocation on the stack: each byte gives at most 3 digits, plus sign
char digits[sizeof({{TYPE}})*3+2];
// dpos points to end of digits array + 1 at the beginning to allow for pre-decrement looping
// dpos points to end of digits array + 1 initially to allow for pre-decrement looping
char *dpos = digits + sizeof({{TYPE}})*3+2;
Py_ssize_t ulength;
int length, prepend_sign;
......
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