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.
This commit is contained in:
parent
448654f1f8
commit
e1027f9034
|
@ -263,7 +263,7 @@ mmap_gfind(mmap_object *self,
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
const char *p, *start_p, *end_p;
|
const char *p, *start_p, *end_p;
|
||||||
char sign = reverse ? -1 : 1;
|
int sign = reverse ? -1 : 1;
|
||||||
|
|
||||||
if (start < 0)
|
if (start < 0)
|
||||||
start += self->size;
|
start += self->size;
|
||||||
|
|
Loading…
Reference in New Issue