Kaydet (Commit) e110dcfa authored tarafından Guido van Rossum's avatar Guido van Rossum

I've had complaints about the comparison "where >= 0" before -- on

IRIX, it doesn't even compile.  Added a cast: "where >= (char *)0".
üst 2581764f
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment