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:
Neal Norwitz 2008-01-27 07:37:38 +00:00
parent 448654f1f8
commit e1027f9034
1 changed files with 1 additions and 1 deletions

View File

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