--- pygame-1.7.1release/src/surface.c~ 2007-05-12 09:55:02.000000000 +0200
+++ pygame-1.7.1release/src/surface.c 2007-05-12 09:55:02.000000000 +0200
@@ -1353,7 +1353,7 @@
if(rect && kw)
{
PyObject *key, *value;
- int pos=0;
+ Py_ssize_t pos=0;
while(PyDict_Next(kw, &pos, &key, &value))
{
if((PyObject_SetAttr(rect, key, value) == -1))
--- pygame-1.7.1release/src/event.c~ 2007-05-12 09:53:06.000000000 +0200
+++ pygame-1.7.1release/src/event.c 2007-05-12 09:53:06.000000000 +0200
@@ -534,7 +534,7 @@
if(keywords)
{
PyObject *key, *value;
- int pos = 0;
+ Py_ssize_t pos = 0;
while(PyDict_Next(keywords, &pos, &key, &value))
PyDict_SetItem(dict, key, value);
}
--- pygame-1.7.1release/src/image.c~ 2007-05-12 10:01:24.000000000 +0200
+++ pygame-1.7.1release/src/image.c 2007-05-12 10:01:24.000000000 +0200
@@ -291,7 +291,8 @@
PyObject *surfobj, *string=NULL;
char *format, *data, *pixels;
SDL_Surface *surf, *temp=NULL;
- int w, h, color, len, flipped=0;
+ int w, h, color, flipped=0;
+ Py_ssize_t len;
int Rmask, Gmask, Bmask, Amask, Rshift, Gshift, Bshift, Ashift, Rloss, Gloss, Bloss, Aloss;
int hascolorkey, colorkey;
@@ -605,7 +606,8 @@
PyObject *string;
char *format, *data;
SDL_Surface *surf = NULL;
- int w, h, len, flipped=0;
+ int w, h, flipped=0;
+ Py_ssize_t len;
int loopw, looph;
if(!PyArg_ParseTuple(arg, "O!(ii)s|i", &PyString_Type, &string, &w, &h, &format, &flipped))
@@ -729,7 +731,8 @@
PyObject *buffer;
char *format, *data;
SDL_Surface *surf = NULL;
- int w, h, len;
+ int w, h;
+ Py_ssize_t len;
PyObject *surfobj;
if(!PyArg_ParseTuple(arg, "O(ii)s|i", &buffer, &w, &h, &format))
--- pygame-1.7.1release/src/rect.c~ 2007-05-12 09:54:41.000000000 +0200
+++ pygame-1.7.1release/src/rect.c 2007-05-12 09:54:41.000000000 +0200
@@ -589,7 +589,7 @@
{
PyRectObject* self = (PyRectObject*)oself;
GAME_Rect *argrect, temp;
- int loop=0;
+ Py_ssize_t loop=0;
PyObject* dict, *key, *val;
PyObject* ret = NULL;
@@ -640,7 +640,7 @@
{
PyRectObject* self = (PyRectObject*)oself;
GAME_Rect *argrect, temp;
- int loop=0;
+ Py_ssize_t loop=0;
PyObject* dict, *key, *val;
PyObject* ret = NULL;