summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-10 21:14:05 (GMT)
committerGuido van Rossum <guido@python.org>2000-04-10 21:14:05 (GMT)
commite110dcfa8600d58771c3553dba7e021b020ed98f (patch)
tree0d38c8fea651234c370cc72a3b6a537332e14302 /Modules/mmapmodule.c
parent2581764f21aedb266e6e9c94e3c003cfd37827a9 (diff)
downloadcpython-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".
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c2
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));