diff options
-rw-r--r-- | Modules/mmapmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 9f81408..3fe1f1c 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -118,7 +118,7 @@ mmap_read_byte_method (mmap_object * self, char value; char * where = (self->data+self->pos); CHECK_VALID(NULL); - if ((where >= 0) && (where < (self->data+self->size))) { + if ((where >= (char *)0) && (where < (self->data+self->size))) { value = (char) *(where); self->pos += 1; return Py_BuildValue("c", (char) *(where)); |