diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-27 07:37:38 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-27 07:37:38 (GMT) |
commit | e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1 (patch) | |
tree | 4ca7fda4ce36dc12e3243d84cc0eee777e05d2e1 /Modules | |
parent | 448654f1f86ad988a28655850bf1dbb163d26730 (diff) | |
download | cpython-e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1.zip cpython-e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1.tar.gz cpython-e1027f9034b8a49d0ba6f42c2b1f08e006bc40f1.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |