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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-03-29 18:56:29 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-03-29 18:57:27 +0400
commit73299516fa2ba8abbde2635754726e287bd2da94 (patch)
tree67c2e858423c833b9cccdfc5cd8e2b828601421d /intern/cycles/render/attribute.cpp
parentf449542d6a099e3f98366cfe057034a882b76272 (diff)
Fix scons CUDA build and compile error with more strict compilers.
Diffstat (limited to 'intern/cycles/render/attribute.cpp')
-rw-r--r--intern/cycles/render/attribute.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp
index e5b1ee7b95e..ce232e90ffc 100644
--- a/intern/cycles/render/attribute.cpp
+++ b/intern/cycles/render/attribute.cpp
@@ -223,9 +223,9 @@ const char *Attribute::standard_name(AttributeStandard std)
AttributeStandard Attribute::name_standard(const char *name)
{
- for(AttributeStandard std = ATTR_STD_NONE; std < ATTR_STD_NUM; std++)
- if(strcmp(name, Attribute::standard_name(std)) == 0)
- return std;
+ for(int std = ATTR_STD_NONE; std < ATTR_STD_NUM; std++)
+ if(strcmp(name, Attribute::standard_name((AttributeStandard)std)) == 0)
+ return (AttributeStandard)std;
return ATTR_STD_NONE;
}