From: Neal Norwitz Date: Sun, 27 Jan 2008 07:37:38 +0000 (+0000) Subject: Use int for the sign rather than a char. char can be signed or unsigned. X-Git-Tag: v2.6a1~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1;p=python 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. --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index defef41111..49fe7f7c72 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -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;