Commits

Anonymous committed f73bf49

I've had complaints about the comparison "where >= 0" before -- on
IRIX, it doesn't even compile. Added a cast: "where >= (char *)0".

Comments (0)

Files changed (1)

Modules/mmapmodule.c

 	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));