diff Modules/mmapmodule.c @ 44995:6bbf6fdc152b legacy-trunk

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.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 27 Jan 2008 07:37:38 +0000
parents ff58b30a8d52
children a97689b3e742
line wrap: on
line diff
--- a/Modules/mmapmodule.c	Sun Jan 27 07:36:03 2008 +0000
+++ b/Modules/mmapmodule.c	Sun Jan 27 07:37:38 2008 +0000
@@ -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;