fix compiler warning: comparison between signed and unsigned

This commit is contained in:
Stephen Swaney
2008-04-05 14:49:41 +00:00
parent cc33fcfe7b
commit d0004bed8c

View File

@@ -533,7 +533,7 @@ static int Button_setattr( PyObject * self, char *name, PyObject * v )
}
else if( but->type == BSTRING_TYPE && PyString_Check(v) ) {
char *newstr = PyString_AsString(v);
int newlen = strlen(newstr);
size_t newlen = strlen(newstr);
if (newlen+1> UI_MAX_DRAW_STR)
return EXPP_ReturnIntError( PyExc_ValueError, "Error: button string length exceeded max limit (399 chars).");