diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2008-04-05 18:49:41 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2008-04-05 18:49:41 +0400 |
commit | d0004bed8c491655a03bc1df3eb7422bfcf93b2b (patch) | |
tree | a5fb0e8bbf7cdad2a1352ffad8b9132f3b711e8e /source/blender | |
parent | cc33fcfe7b76aa8370cace83859d085b42304d48 (diff) |
fix compiler warning: comparison between signed and unsigned
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/Draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c index 8d66068d581..a306c30e588 100644 --- a/source/blender/python/api2_2x/Draw.c +++ b/source/blender/python/api2_2x/Draw.c @@ -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)."); |