diff options
author | Guido van Rossum <guido@python.org> | 2000-04-10 21:14:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-10 21:14:05 (GMT) |
commit | e110dcfa8600d58771c3553dba7e021b020ed98f (patch) | |
tree | 0d38c8fea651234c370cc72a3b6a537332e14302 | |
parent | 2581764f21aedb266e6e9c94e3c003cfd37827a9 (diff) | |
download | cpython-e110dcfa8600d58771c3553dba7e021b020ed98f.zip cpython-e110dcfa8600d58771c3553dba7e021b020ed98f.tar.gz cpython-e110dcfa8600d58771c3553dba7e021b020ed98f.tar.bz2 |
I've had complaints about the comparison "where >= 0" before -- on
IRIX, it doesn't even compile. Added a cast: "where >= (char *)0".
-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)); |