ValueType: Fixed bug

This commit is contained in:
Daniel Marjamäki 2017-03-05 01:39:56 +01:00
parent 920398615d
commit c832b2f40b
1 changed files with 2 additions and 2 deletions

View File

@ -4657,8 +4657,8 @@ static const Token * parsedecl(const Token *type, ValueType * const valuetype, V
}
if (valuetype->fromLibraryType(typestr + end->str(), settings))
type = end;
} else if (ValueType::Type t = ValueType::typeFromString(type->str(), type->isLong()))
valuetype->type = t;
} else if (ValueType::Type::UNKNOWN_TYPE != ValueType::typeFromString(type->str(), type->isLong()))
valuetype->type = ValueType::typeFromString(type->str(), type->isLong());
else if (type->str() == "auto") {
if (!type->valueType())
return nullptr;