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:
authorCampbell Barton <ideasman42@gmail.com>2013-02-04 19:48:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-04 19:48:29 +0400
commit1c1fb24f312464c0642fbc86db223c4f7dbe4c54 (patch)
tree4e0d0640c16fbea9eab6cec57ac6fe38cd116886 /source/blender/imbuf
parent42bbd7d62edd64d3622b2a8491d5d245162f3497 (diff)
fix for rangefunc being unused for int & int array.
also cast strlen to an int to avoid overflow.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/colormanagement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c
index 86f47fe07c4..8cb721e84f1 100644
--- a/source/blender/imbuf/intern/colormanagement.c
+++ b/source/blender/imbuf/intern/colormanagement.c
@@ -2110,7 +2110,7 @@ static void colormanage_description_strip(char *description)
{
int i, n;
- for (i = strlen(description) - 1; i >= 0; i--) {
+ for (i = (int)strlen(description) - 1; i >= 0; i--) {
if (ELEM(description[i], '\r', '\n')) {
description[i] = '\0';
}