Fix scons CUDA build and compile error with more strict compilers.

This commit is contained in:
Brecht Van Lommel
2014-03-29 15:56:29 +01:00
parent f449542d6a
commit 73299516fa
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}