Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e110dcf

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/mmapmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mmap_read_byte_method (mmap_object * self,
118118
char value;
119119
char * where = (self->data+self->pos);
120120
CHECK_VALID(NULL);
121-
if ((where >= 0) && (where < (self->data+self->size))) {
121+
if ((where >= (char *)0) && (where < (self->data+self->size))) {
122122
value = (char) *(where);
123123
self->pos += 1;
124124
return Py_BuildValue("c", (char) *(where));

0 commit comments

Comments
 (0)