commit | e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sun Jan 27 07:37:38 2008 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sun Jan 27 07:37:38 2008 +0000 |
tree | 4ca7fda4ce36dc12e3243d84cc0eee777e05d2e1 | |
parent | 448654f1f86ad988a28655850bf1dbb163d26730 [diff] [blame] |
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 defef41..49fe7f7 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c
@@ -263,7 +263,7 @@ 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;