diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-03-29 18:56:29 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-03-29 18:57:27 +0400 |
commit | 73299516fa2ba8abbde2635754726e287bd2da94 (patch) | |
tree | 67c2e858423c833b9cccdfc5cd8e2b828601421d /intern/cycles/render/attribute.cpp | |
parent | f449542d6a099e3f98366cfe057034a882b76272 (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.cpp | 6 |
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; } |