[Python-checkins] r60346 - python/trunk/Modules/mmapmodule.c
neal.norwitz
python-checkins at python.org
Sun Jan 27 08:37:38 CET 2008
Author: neal.norwitz
Date: Sun Jan 27 08:37:38 2008
New Revision: 60346
Modified:
python/trunk/Modules/mmapmodule.c
Log:
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.
Modified: python/trunk/Modules/mmapmodule.c
==============================================================================
--- python/trunk/Modules/mmapmodule.c (original)
+++ python/trunk/Modules/mmapmodule.c Sun Jan 27 08:37:38 2008
@@ -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;
More information about the Python-checkins
mailing list