Kaydet (Commit) e1027f90 authored tarafından Neal Norwitz's avatar Neal Norwitz

Use int for the sign rather than a char. char can be signed or unsigned.

It's system dependent.  This might fix the problem with test_rfind failing.
üst 448654f1
......@@ -263,7 +263,7 @@ mmap_gfind(mmap_object *self,
return NULL;
} else {
const char *p, *start_p, *end_p;
char sign = reverse ? -1 : 1;
int sign = reverse ? -1 : 1;
if (start < 0)
start += self->size;
......
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