From e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 27 Jan 2008 07:37:38 +0000 Subject: [PATCH] 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. --- Modules/mmapmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1