Skip to content

Commit d3a5a90

Browse files
Update checkio.cpp
1 parent 6278f6b commit d3a5a90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/checkio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,9 +1539,9 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * arg, const Settings &settings,
15391539
if (element && isStdVectorOrString()) { // isStdVectorOrString sets type token if true
15401540
element = false; // not really an array element
15411541
} else if (variableInfo->isEnumType()) {
1542-
if (variableInfo->type() && variableInfo->type()->classScope && variableInfo->type()->classScope->enumType)
1542+
if (variableInfo->type() && variableInfo->type()->classScope && variableInfo->type()->classScope->enumType && variableInfo->type()->classScope->enumType->isStandardType())
15431543
typeToken = variableInfo->type()->classScope->enumType;
1544-
else {
1544+
else if (!variableInfo->type()->classScope->enumType) {
15451545
tempToken = new Token(tok1);
15461546
tempToken->str("int");
15471547
typeToken = tempToken;

0 commit comments

Comments
 (0)