mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Merged revisions 74675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r74675 | mark.dickinson | 2009-09-06 11:19:23 +0100 (Sun, 06 Sep 2009) | 10 lines
Merged revisions 74673 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74673 | mark.dickinson | 2009-09-06 11:03:31 +0100 (Sun, 06 Sep 2009) | 3 lines
Issue #6846: bytearray.pop was returning ints in the range [-128, 128)
instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
........
................
This commit is contained in:
parent
45b9f370fc
commit
424d75a3f5
3 changed files with 5 additions and 1 deletions
|
|
@ -2705,7 +2705,7 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args)
|
|||
if (PyByteArray_Resize((PyObject *)self, n - 1) < 0)
|
||||
return NULL;
|
||||
|
||||
return PyLong_FromLong(value);
|
||||
return PyLong_FromLong((unsigned char)value);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(remove__doc__,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue