Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2008-04-05 18:49:41 +0400
committerStephen Swaney <sswaney@centurytel.net>2008-04-05 18:49:41 +0400
commitd0004bed8c491655a03bc1df3eb7422bfcf93b2b (patch)
treea5fb0e8bbf7cdad2a1352ffad8b9132f3b711e8e /source/blender/python/api2_2x
parentcc33fcfe7b76aa8370cace83859d085b42304d48 (diff)
fix compiler warning: comparison between signed and unsigned
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r--source/blender/python/api2_2x/Draw.c2
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).");