[Python-checkins] cpython: Fix long_format_binary()
victor.stinner
python-checkins at python.org
Wed Oct 14 04:02:07 EDT 2015
https://hg.python.org/cpython/rev/03646293f1b3
changeset: 98739:03646293f1b3
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Oct 14 09:47:23 2015 +0200
summary:
Fix long_format_binary()
Issue #25399: Fix long_format_binary(), allocate bytes for the bytes writer.
files:
Objects/longobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/longobject.c b/Objects/longobject.c
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1836,7 +1836,7 @@
kind = writer->kind;
v = NULL;
}
- else if (writer) {
+ else if (bytes_writer) {
*bytes_str = _PyBytesWriter_Prepare(bytes_writer, *bytes_str, sz);
if (*bytes_str == NULL)
return -1;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list