summaryrefslogtreecommitdiffstats
path: root/Objects/bytearrayobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-06 10:19:23 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-06 10:19:23 (GMT)
commit54a3db9f41269dd00ec26b345b8518afcd5858ff (patch)
treed7a06a92ed6be635194911c55c7ef50f76ddaf95 /Objects/bytearrayobject.c
parent9c1133678652e7c43f10f29cb3fa204665316860 (diff)
downloadcpython-54a3db9f41269dd00ec26b345b8518afcd5858ff.zip
cpython-54a3db9f41269dd00ec26b345b8518afcd5858ff.tar.gz
cpython-54a3db9f41269dd00ec26b345b8518afcd5858ff.tar.bz2
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. ........
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r--Objects/bytearrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index f3d5697..f8f9469 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -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__,