minor update of 64-bit checker

This commit is contained in:
Daniel Marjamäki 2017-03-30 10:07:25 +02:00
parent 93816a63a8
commit c9eb7f4556
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ void Check64BitPortability::pointerassignment()
if (rhstype->pointer >= 1U && if (rhstype->pointer >= 1U &&
lhstype->pointer == 0U && lhstype->pointer == 0U &&
lhstype->originalTypeName.empty() && lhstype->originalTypeName.empty() &&
lhstype->type == ValueType::Type::INT) lhstype->isIntegral() &&
lhstype->type >= ValueType::Type::CHAR &&
lhstype->type <= ValueType::Type::INT)
assignmentAddressToIntegerError(tok); assignmentAddressToIntegerError(tok);
} }
} }