diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-05-09 18:48:26 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-05-09 18:48:26 (GMT) |
commit | d6283b84c8ab6aec059c226e1c3dec4d462093e0 (patch) | |
tree | 369830d8868e6f17cb81ad69d300eb336d79bc19 /Modules | |
parent | 8449f6b95e35d98441515e4a54ccdca16d97bdc9 (diff) | |
download | cpython-d6283b84c8ab6aec059c226e1c3dec4d462093e0.zip cpython-d6283b84c8ab6aec059c226e1c3dec4d462093e0.tar.gz cpython-d6283b84c8ab6aec059c226e1c3dec4d462093e0.tar.bz2 |
Minor fiddling related to
SF patch 416251 2.1c1 mmapmodule: unused vrbl cleanup
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index c48278f..dd7ff6d 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -163,16 +163,13 @@ static PyObject * mmap_read_byte_method(mmap_object *self, PyObject *args) { - char value; - char *where; CHECK_VALID(NULL); if (!PyArg_ParseTuple(args, ":read_byte")) return NULL; if (self->pos < self->size) { - where = self->data + self->pos; - value = (char) *(where); + char value = self->data[self->pos]; self->pos += 1; - return Py_BuildValue("c", (char) *(where)); + return Py_BuildValue("c", value); } else { PyErr_SetString (PyExc_ValueError, "read byte out of range"); return NULL; |